create aside activity added to sections menu

This commit is contained in:
Julie Lenaerts 2021-08-25 12:38:11 +02:00
parent f751d6abca
commit 3f01986234
2 changed files with 2 additions and 2 deletions

View File

@ -27,6 +27,7 @@ final class ChillAsideActivityExtension extends Extension implements PrependExte
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../config')); $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../config'));
// $loader->load('services.yaml'); // $loader->load('services.yaml');
$loader->load('services/form.yaml'); $loader->load('services/form.yaml');
$loader->load('services/menu.yaml');
} }
public function prepend(ContainerBuilder $container) public function prepend(ContainerBuilder $container)

View File

@ -4,7 +4,6 @@ namespace Chill\AsideActivityBundle\Menu;
use Chill\MainBundle\Routing\LocalMenuBuilderInterface; use Chill\MainBundle\Routing\LocalMenuBuilderInterface;
use Knp\Menu\MenuItem; use Knp\Menu\MenuItem;
use Symfony\Component\Translation\Translator;
use Symfony\Contracts\Translation\TranslatorInterface; use Symfony\Contracts\Translation\TranslatorInterface;
/** /**
@ -33,7 +32,7 @@ class SectionMenuBuilder implements LocalMenuBuilderInterface
'route' => 'chill_crud_aside_activity_new' 'route' => 'chill_crud_aside_activity_new'
]) ])
->setExtras([ ->setExtras([
'order' => 13, 'order' => 11,
'icons' => [ 'plus' ] 'icons' => [ 'plus' ]
]); ]);
} }