Exemple #1
0
 /**
  * @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']);
 }
Exemple #2
0
 /**
  * {@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');
 }
Exemple #3
0
 /**
  * @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();
 }
Exemple #6
0
 /**
  * @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);
             }
         }
     });
 }
Exemple #7
0
 /**
  * @internal
  */
 public function init(\Zend\ModuleManager\ModuleManagerInterface $manager)
 {
     $manager->loadModule('Database');
     $manager->loadModule('Library');
     $manager->loadModule('Protocol');
 }
Exemple #8
0
 /**
  * {@inheritDoc}
  */
 public function init(ModuleManagerInterface $moduleManager)
 {
     $moduleManager->loadModule('CmsMoney');
 }
Exemple #9
0
 /**
  * @internal
  */
 public function init(\Zend\ModuleManager\ModuleManagerInterface $manager)
 {
     $manager->loadModule('Model');
 }
Exemple #10
0
 /**
  * @param ModuleManagerInterface $moduleManager
  */
 public function init(ModuleManagerInterface $moduleManager)
 {
     $moduleManager->loadModule('CmsMap');
     $moduleManager->loadModule('CmsImageMap');
 }
Exemple #11
0
 /**
  * @param ModuleManagerInterface $moduleManager
  */
 public function init(ModuleManagerInterface $moduleManager)
 {
     $moduleManager->loadModule('CmsCommon');
     $moduleManager->loadModule('CmsFile');
 }
 /**
  * @inheritdoc
  */
 public function init(ModuleManagerInterface $manager)
 {
     $manager->loadModule('Zf2Extensions');
 }
Exemple #13
0
 /**
  * @param ModuleManagerInterface $moduleManager
  */
 public function init(ModuleManagerInterface $moduleManager)
 {
     $moduleManager->loadModule('CmsCommon');
     $moduleManager->loadModule('CmsAuthentication');
     $moduleManager->loadModule('CmsMailer');
 }
Exemple #14
0
 /**
  * {@inheritdoc}
  */
 public function init(ModuleManagerInterface $manager)
 {
     $manager->loadModule('AssetManager');
 }
Exemple #15
0
 /**
  * @param ModuleManagerInterface $moduleManager
  */
 public function init(ModuleManagerInterface $moduleManager)
 {
     $moduleManager->loadModule('CmsCldr');
     $moduleManager->loadModule('CmsCalendar');
 }