Zend Framework  3.0
Public Member Functions | List of all members
ModuleManagerFactory Class Reference

Public Member Functions

 __invoke (ContainerInterface $container, $name, array $options=null)
 Creates and returns the module manager.
 
 createService (ServiceLocatorInterface $container)
 Create and return ModuleManager instance.
 

Member Function Documentation

__invoke ( ContainerInterface  $container,
  $name,
array  $options = null 
)

Creates and returns the module manager.

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.

Parameters
ContainerInterface$container
string$name
null | array$options
Returns
ModuleManager

Implements FactoryInterface.

createService ( ServiceLocatorInterface  $container)

Create and return ModuleManager instance.

For use with zend-servicemanager v2; proxies to __invoke().

Parameters
ServiceLocatorInterface$container
Returns
ModuleManager

Implements FactoryInterface.