PHP Class Gc\Mvc\Factory\ModuleManagerFactory

Inheritance: implements Zend\ServiceManager\FactoryInterface
Mostra file Open project: gotcms/gotcms

Public Methods

Method Description
createService ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator ) : Zend\ModuleManager\ModuleManager Creates and returns the module manager

Protected Methods

Method Description
prepareConfig ( Zend\ServiceManager\ServiceManager $serviceLocator, array $config ) : void Prepare services
prepareServices ( Zend\ModuleManager\Listener\ServiceListener $serviceListener, Zend\ServiceManager\ServiceManager $serviceLocator ) : void Prepare services

Method Details

createService() public method

Instantiates the default module listeners, providing them configuration from the "module_listener_options" key of the ApplicationConfig service. Also sets the default config glob path. Module manager is instantiated and provided with an EventManager, to which the default listener aggregate is attached. The ModuleEvent is also created and attached to the module manager.
public createService ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator ) : Zend\ModuleManager\ModuleManager
$serviceLocator Zend\ServiceManager\ServiceLocatorInterface Service Manager
return Zend\ModuleManager\ModuleManager

prepareConfig() protected method

Prepare services
protected prepareConfig ( Zend\ServiceManager\ServiceManager $serviceLocator, array $config ) : void
$serviceLocator Zend\ServiceManager\ServiceManager Service Manager
$config array Configuration
return void

prepareServices() protected method

Prepare services
protected prepareServices ( Zend\ModuleManager\Listener\ServiceListener $serviceListener, Zend\ServiceManager\ServiceManager $serviceLocator ) : void
$serviceListener Zend\ModuleManager\Listener\ServiceListener Service Listener
$serviceLocator Zend\ServiceManager\ServiceManager Service Manager
return void