/** * @param ModuleManagerInterface $moduleManager */ public function init(ModuleManagerInterface $moduleManager) { $moduleManager->loadModule('DoctrineModule'); $moduleManager->loadModule('DoctrineORMModule'); $moduleManager->loadModule('CmsDoctrine'); $em = $moduleManager->getEventManager(); $em->attach(ModuleEvent::EVENT_LOAD_MODULES_POST, [$this, 'onPostLoadModules']); }
/** * {@inheritDoc} */ public function init(ModuleManagerInterface $moduleManager) { if (class_exists('ZendDeveloperTools\\Module')) { $moduleManager->loadModule('ZendDeveloperTools'); } $moduleManager->loadModule('OcraCachedViewResolver'); $moduleManager->loadModule('StrokerCache'); $moduleManager->loadModule('CmsJquery'); $sm = $moduleManager->getEvent()->getParam('ServiceManager'); $serviceListener = $sm->get('ServiceListener'); $serviceListener->addServiceManager('MapperManager', 'mappers', MapperPluginProviderInterface::class, 'getMapperConfig'); $serviceListener->addServiceManager('DomainServiceManager', 'domain_services', DomainServicePluginProviderInterface::class, 'getDomainServiceConfig'); $serviceListener->addServiceManager('SessionContainerManager', 'session_containers', ContainerPluginProviderInterface::class, 'getSessionContainerConfig'); }
/** * @param ModuleManagerInterface $moduleManager */ public function init(ModuleManagerInterface $moduleManager) { $moduleManager->loadModule('AssetManager'); $sm = $moduleManager->getEvent()->getParam('ServiceManager'); $serviceListener = $sm->get('ServiceListener'); $serviceListener->addServiceManager('JQueryPluginManager', 'jquery_plugins', JQueryPluginProviderInterface::class, 'getJQueryPluginConfig'); }
/** * Ensure the UI module is loaded * * @param ModuleManagerInterface $modules */ public function init(ModuleManagerInterface $modules) { $loaded = $modules->getLoadedModules(); if (isset($loaded['ZF\\Apigility\\Admin\\Ui'])) { return; } $modules->loadModule('ZF\\Apigility\\Admin\\Ui'); }
/** * Initialize module. * * If the admin UI module is not loaded yet, load it. * * Disable the opcache as well. * * @param ModuleManagerInterface $modules */ public function init(ModuleManagerInterface $modules) { $loaded = $modules->getLoadedModules(false); if (!isset($loaded['ZF\\Apigility\\Admin\\Ui'])) { $modules->loadModule('ZF\\Apigility\\Admin\\Ui'); } $this->disableOpCache(); }
/** * @param ModuleManagerInterface $moduleManager */ public function init(ModuleManagerInterface $moduleManager) { $moduleManager->loadModule('CmsCommon'); $moduleManager->loadModule('DoctrineModule'); spl_autoload_register(function ($class) { if (strpos($class, 'Doctrine\\ORM\\Mapping') === 0 || strpos($class, 'Doctrine\\ODM\\Mapping') === 0) { $namespaces = ['Doctrine\\ORM\\Mapping', 'Doctrine\\ODM\\Mapping']; $alias = str_replace($namespaces, 'CmsDoctrine\\Mapping\\Annotation', $class); if (class_exists($alias)) { return class_alias($alias, $class); } $alias = str_replace($namespaces, 'Gedmo\\Mapping\\Annotation', $class); if (class_exists($alias)) { return class_alias($alias, $class); } } }); }
/** * @internal */ public function init(\Zend\ModuleManager\ModuleManagerInterface $manager) { $manager->loadModule('Database'); $manager->loadModule('Library'); $manager->loadModule('Protocol'); }
/** * {@inheritDoc} */ public function init(ModuleManagerInterface $moduleManager) { $moduleManager->loadModule('CmsMoney'); }
/** * @internal */ public function init(\Zend\ModuleManager\ModuleManagerInterface $manager) { $manager->loadModule('Model'); }
/** * @param ModuleManagerInterface $moduleManager */ public function init(ModuleManagerInterface $moduleManager) { $moduleManager->loadModule('CmsMap'); $moduleManager->loadModule('CmsImageMap'); }
/** * @param ModuleManagerInterface $moduleManager */ public function init(ModuleManagerInterface $moduleManager) { $moduleManager->loadModule('CmsCommon'); $moduleManager->loadModule('CmsFile'); }
/** * @inheritdoc */ public function init(ModuleManagerInterface $manager) { $manager->loadModule('Zf2Extensions'); }
/** * @param ModuleManagerInterface $moduleManager */ public function init(ModuleManagerInterface $moduleManager) { $moduleManager->loadModule('CmsCommon'); $moduleManager->loadModule('CmsAuthentication'); $moduleManager->loadModule('CmsMailer'); }
/** * {@inheritdoc} */ public function init(ModuleManagerInterface $manager) { $manager->loadModule('AssetManager'); }
/** * @param ModuleManagerInterface $moduleManager */ public function init(ModuleManagerInterface $moduleManager) { $moduleManager->loadModule('CmsCldr'); $moduleManager->loadModule('CmsCalendar'); }