Zend Framework
3.0
|
Public Member Functions | |
__invoke (ContainerInterface $container, $requestedName, array $options=null) | |
Create an object. | |
canCreate (ContainerInterface $container, $requestedName) | |
Can the factory create an instance for the service? | |
__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 the factory create an instance for the service?
ContainerInterface | $container | |
string | $requestedName |
Implements AbstractFactoryInterface.