1. Go to this page and download the library: Download c975l/config-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/ */
c975l / config-bundle example snippets
namespace c975L\MyBundle\Management;
use c975L\ConfigBundle\Management\MenuProviderInterface;
use c975L\MyBundle\Controller\Management\MyCrudController;
class MenuProvider implements MenuProviderInterface
{
public function getMenuSection(): array
{
return [
'label' => 'label.my_section',
'translation_domain' => 'my_bundle',
];
}
public function getMenus(): array
{
return [
'my_entity' => [
'controller' => MyCrudController::class,
'label' => 'label.my_entity',
'translation_domain' => 'my_bundle',
'icon' => 'fas fa-star',
],
];
}
// Links to plain routes (not EasyAdmin CRUD controllers); return [] if none
public function getLinks(): array
{
return [];
}
}