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

Public Member Functions

 __invoke (ContainerInterface $container, $name, array $options=null)
 Create the controller manager service.
 
 createService (ServiceLocatorInterface $container)
 Create and return ControllerManager instance.
 

Member Function Documentation

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

Create the controller manager service.

Creates and returns an instance of ControllerManager. The only controllers this manager will allow are those defined in the application configuration's "controllers" array. If a controller is matched, the scoped manager will attempt to load the controller. Finally, it will attempt to inject the controller plugin manager if the controller implements a setPluginManager() method.

Parameters
ContainerInterface$container
string$Name
null | array$options
Returns
ControllerManager

Implements FactoryInterface.

createService ( ServiceLocatorInterface  $container)

Create and return ControllerManager instance.

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

Parameters
ServiceLocatorInterface$container
Returns
ControllerManager

Implements FactoryInterface.