| @@ 44-54 (lines=11) @@ | ||
| 41 | * @param ConfigurationFactory $configurationFactory |
|
| 42 | * @param ApplicationConfigurationStorage $applicationConfigurationStorage |
|
| 43 | */ |
|
| 44 | public function __construct( |
|
| 45 | ResourceCollection $resourceCollection, |
|
| 46 | EventDispatcherInterface $eventDispatcher, |
|
| 47 | ConfigurationFactory $configurationFactory, |
|
| 48 | ApplicationConfigurationStorage $applicationConfigurationStorage |
|
| 49 | ) { |
|
| 50 | $this->resourceCollection = $resourceCollection; |
|
| 51 | $this->eventDispatcher = $eventDispatcher; |
|
| 52 | $this->configurationFactory = $configurationFactory; |
|
| 53 | $this->applicationConfiguration = $applicationConfigurationStorage->getConfiguration(); |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * @param Request $request |
|
| @@ 61-71 (lines=11) @@ | ||
| 58 | * @param ResourceCollection $resourceCollection |
|
| 59 | * @param ConfigurationFactory $configurationFactory |
|
| 60 | */ |
|
| 61 | public function __construct( |
|
| 62 | ApplicationConfigurationStorage $applicationConfigurationStorage, |
|
| 63 | EntityManagerInterface $entityManager, |
|
| 64 | ResourceCollection $resourceCollection, |
|
| 65 | ConfigurationFactory $configurationFactory |
|
| 66 | ) { |
|
| 67 | $this->applicationConfiguration = $applicationConfigurationStorage->getConfiguration(); |
|
| 68 | $this->entityManager = $entityManager; |
|
| 69 | $this->resourceCollection = $resourceCollection; |
|
| 70 | $this->configurationFactory = $configurationFactory; |
|
| 71 | } |
|
| 72 | ||
| 73 | public function enrichAdminConfiguration(ConfigurationEvent $event) |
|
| 74 | { |
|