| @@ 65-79 (lines=15) @@ | ||
| 62 | * @param TranslatorInterface $translator |
|
| 63 | * @param ConfigurationFactory $configurationFactory |
|
| 64 | */ |
|
| 65 | public function __construct( |
|
| 66 | ApplicationConfigurationStorage $applicationConfigurationStorage, |
|
| 67 | MenuFactory $menuFactory, |
|
| 68 | Twig_Environment $twig, |
|
| 69 | RouterInterface $router, |
|
| 70 | TranslatorInterface $translator, |
|
| 71 | ConfigurationFactory $configurationFactory |
|
| 72 | ) { |
|
| 73 | $this->applicationConfiguration = $applicationConfigurationStorage->getConfiguration(); |
|
| 74 | $this->menuFactory = $menuFactory; |
|
| 75 | $this->twig = $twig; |
|
| 76 | $this->router = $router; |
|
| 77 | $this->translator = $translator; |
|
| 78 | $this->configurationFactory = $configurationFactory; |
|
| 79 | } |
|
| 80 | ||
| 81 | public function getFunctions() |
|
| 82 | { |
|
| @@ 68-82 (lines=15) @@ | ||
| 65 | * @param EventDispatcherInterface $eventDispatcher |
|
| 66 | * @param array $adminMenuConfigurations |
|
| 67 | */ |
|
| 68 | public function __construct( |
|
| 69 | ApplicationConfigurationStorage $storage, |
|
| 70 | MenuFactory $menuFactory, |
|
| 71 | ConfigurationFactory $configurationFactory, |
|
| 72 | ResourceCollection $resourceCollection, |
|
| 73 | EventDispatcherInterface $eventDispatcher, |
|
| 74 | array $adminMenuConfigurations = [] |
|
| 75 | ) { |
|
| 76 | $this->applicationConfiguration = $storage->getConfiguration(); |
|
| 77 | $this->menuFactory = $menuFactory; |
|
| 78 | $this->resourceCollection = $resourceCollection; |
|
| 79 | $this->configurationFactory = $configurationFactory; |
|
| 80 | $this->adminMenuConfigurations = $adminMenuConfigurations; |
|
| 81 | $this->eventDispatcher = $eventDispatcher; |
|
| 82 | } |
|
| 83 | ||
| 84 | /** |
|
| 85 | * Build menus according to the given configuration. |
|