PHP code example of oliverde8 / comfy-easy-admin-bundle
1. Go to this page and download the library: Download oliverde8/comfy-easy-admin-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
oliverde8 / comfy-easy-admin-bundle example snippets
protected MenuConfigurator $menuConfigurator;
/**
* DashboardController constructor.
* @param ConfigInterface $testConfig
*/
public function __construct(MenuConfigurator $menuConfigurator)
{
$this->menuConfigurator = $menuConfigurator;
}
public function configureMenuItems(): iterable
{
/** Other menu elements .... */
yield $this->menuConfigurator->getMenuItem();
}