PHP Class Zend\Mvc\Service\ModuleManagerFactory

Inheritance: implements Zend\ServiceManager\FactoryInterface
Show file Open project: zendframework/zend-mvc Class Usage Examples

Public Methods

Method Description
__invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Zend\ModuleManager\ModuleManager Creates and returns the module manager
createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Zend\ModuleManager\ModuleManager Create and return ModuleManager instance

Method Details

__invoke() 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 __invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Zend\ModuleManager\ModuleManager
$container Interop\Container\ContainerInterface
$name string
$options array
return Zend\ModuleManager\ModuleManager

createService() public method

For use with zend-servicemanager v2; proxies to __invoke().
public createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Zend\ModuleManager\ModuleManager
$container Zend\ServiceManager\ServiceLocatorInterface
return Zend\ModuleManager\ModuleManager