Esempio n. 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']);
 }
Esempio n. 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');
 }
Esempio n. 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');
 }
Esempio n. 4
0
 /**
  * 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');
 }
Esempio n. 5
0
 /**
  * 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();
 }
Esempio n. 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);
             }
         }
     });
 }
Esempio n. 7
0
 /**
  * @internal
  */
 public function init(\Zend\ModuleManager\ModuleManagerInterface $manager)
 {
     $manager->loadModule('Database');
     $manager->loadModule('Library');
     $manager->loadModule('Protocol');
 }
Esempio n. 8
0
 /**
  * {@inheritDoc}
  */
 public function init(ModuleManagerInterface $moduleManager)
 {
     $moduleManager->loadModule('CmsMoney');
 }
Esempio n. 9
0
 /**
  * @internal
  */
 public function init(\Zend\ModuleManager\ModuleManagerInterface $manager)
 {
     $manager->loadModule('Model');
 }
Esempio n. 10
0
 /**
  * @param ModuleManagerInterface $moduleManager
  */
 public function init(ModuleManagerInterface $moduleManager)
 {
     $moduleManager->loadModule('CmsMap');
     $moduleManager->loadModule('CmsImageMap');
 }
Esempio n. 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');
 }
Esempio n. 13
0
 /**
  * @param ModuleManagerInterface $moduleManager
  */
 public function init(ModuleManagerInterface $moduleManager)
 {
     $moduleManager->loadModule('CmsCommon');
     $moduleManager->loadModule('CmsAuthentication');
     $moduleManager->loadModule('CmsMailer');
 }
Esempio n. 14
0
 /**
  * {@inheritdoc}
  */
 public function init(ModuleManagerInterface $manager)
 {
     $manager->loadModule('AssetManager');
 }
Esempio n. 15
0
 /**
  * @param ModuleManagerInterface $moduleManager
  */
 public function init(ModuleManagerInterface $moduleManager)
 {
     $moduleManager->loadModule('CmsCldr');
     $moduleManager->loadModule('CmsCalendar');
 }