public function onMenuConfigure(ConfigureMenuEvent $event)
    {
        if (!$this->permissionResolver->hasAccess('uicron', 'list')) {
            return;
        }

        $menu = $event->getMenu();

        $cronsMenu = $menu->getChild(MainMenuBuilder::ITEM_ADMIN);
        $cronsMenu->addChild(self::ITEM_CRONS, ['route' => 'edgar.ezuicron.list']);
    }
public function onMenuConfigure(ConfigureMenuEvent $event)
    {
        if (!$this->permissionResolver->hasAccess('uicron', 'list')) {
            return;
        }

        $menu = $event->getMenu();

        $cronsMenu = $menu->getChild(MainMenuBuilder::ITEM_ADMIN);
        $cronsMenu->addChild(self::ITEM_CRONS, ['route' => 'edgar.ezuicron.list']);
    }
public function onMenuConfigure ( ConfigureMenuEvent $ event ) { if ( ! $ this -> permissionResolver -> hasAccess ( 'uicron' , 'list' ) ) { return ; } $ menu = $ event -> getMenu ( ) ; $ cronsMenu = $ menu -> getChild ( MainMenuBuilder :: ITEM_ADMIN ) ; $ cronsMenu -> addChild ( self :: ITEM_CRONS , [ 'route' => 'edgar.ezuicron.list' ] ) ; }
Add cron to admin menu.

@param ConfigureMenuEvent $event
Add cron to admin menu .