Zend Framework
3.0
|
Navigation abstract service factory. More...
Public Member Functions | ||||||||||||||||
canCreate (ContainerInterface $container, $requestedName) | ||||||||||||||||
Can we create a navigation by the requested name? (v3) | ||||||||||||||||
canCreateServiceWithName (ServiceLocatorInterface $container, $name, $requestedName) | ||||||||||||||||
Can we create a navigation by the requested name? (v2) | ||||||||||||||||
__invoke (ContainerInterface $container, $requestedName, array $options=null) | ||||||||||||||||
Create an object.
| ||||||||||||||||
createServiceWithName (ServiceLocatorInterface $container, $name, $requestedName) | ||||||||||||||||
Can we create a navigation by the requested name? (v2) | ||||||||||||||||
Public Attributes | |
const | CONFIG_KEY = 'navigation' |
const | SERVICE_PREFIX = 'Zend\\Navigation\\' |
Protected Member Functions | |
getConfig (ContainerInterface $container) | |
Get navigation configuration, if any. | |
Protected Attributes | |
$config | |
Navigation abstract service factory.
Allows configuring several navigation instances. If you have a navigation config key named "special" then you can use $container->get('Zend') to retrieve a navigation instance with this configuration.
__invoke | ( | ContainerInterface | $container, |
$requestedName, | |||
array | $options = null |
||
) |
Create an object.
ContainerInterface | $container | |
string | $requestedName | |
null | array | $options |
ServiceNotFoundException | if unable to resolve the service. |
ServiceNotCreatedException | if an exception is raised when creating a service. |
ContainerException | if any other error occurs |
Implements FactoryInterface.
canCreate | ( | ContainerInterface | $container, |
$requestedName | |||
) |
Can we create a navigation by the requested name? (v3)
ContainerInterface | $container | |
string | $requestedName | Name by which service was requested, must start with Zend\ |
Implements AbstractFactoryInterface.
canCreateServiceWithName | ( | ServiceLocatorInterface | $container, |
$name, | |||
$requestedName | |||
) |
Can we create a navigation by the requested name? (v2)
ServiceLocatorInterface | $container | |
string | $name | Normalized name by which service was requested; ignored. |
string | $requestedName | Name by which service was requested, must start with Zend\ |
Implements AbstractFactoryInterface.
createServiceWithName | ( | ServiceLocatorInterface | $container, |
$name, | |||
$requestedName | |||
) |
Can we create a navigation by the requested name? (v2)
ServiceLocatorInterface | $container | |
string | $name | Normalized name by which service was requested; ignored. |
string | $requestedName | Name by which service was requested, must start with Zend\ |
Implements AbstractFactoryInterface.
|
protected |
Get navigation configuration, if any.
ContainerInterface | $container |
|
protected |
const CONFIG_KEY = 'navigation' |
const SERVICE_PREFIX = 'Zend\\Navigation\\' |