Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * init
- *
- * Initialise the modules resources/services.
- *
- * @param ModuleManagerInterface $moduleManager The module manager instance.
- */
- public function init(ModuleManagerInterface $moduleManager)
- {
- $eventManager = $moduleManager->getEventManager()->getSharedManager();
- if (Console::isConsole()) {
- $eventManager->attach('doctrine', 'loadCli.post', [$this, 'loadCurrentClientViaCliOption'], -999);
- $eventManager->attach('doctrine', 'loadCli.post', [$this, 'loadEntityManagerViaCliOption'], -1000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement