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

Public Member Functions

 __invoke (ContainerInterface $container, $name, array $options=null)
 Create and return the router.
 
 createService (ServiceLocatorInterface $container, $normalizedName=null, $requestedName=null)
 Create and return RouteStackInterface instance.
 
- Public Member Functions inherited from FactoryInterface
 createService (ServiceLocatorInterface $serviceLocator)
 Create service.
 

Member Function Documentation

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

Create and return the router.

Delegates to the HttpRouter service.

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

Implements FactoryInterface.

createService ( ServiceLocatorInterface  $container,
  $normalizedName = null,
  $requestedName = null 
)

Create and return RouteStackInterface instance.

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

Parameters
ServiceLocatorInterface$container
null | string$normalizedName
null | string$requestedName
Returns
RouteStackInterface