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

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?
 

Member Function Documentation

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

Create an object.

Parameters
ContainerInterface$container
string$requestedName
null | array$options
Returns
object
Exceptions
ServiceNotFoundExceptionif unable to resolve the service.
ServiceNotCreatedExceptionif an exception is raised when creating a service.
ContainerExceptionif any other error occurs

Implements FactoryInterface.

canCreate ( ContainerInterface  $container,
  $requestedName 
)

Can the factory create an instance for the service?

Parameters
ContainerInterface$container
string$requestedName
Returns
bool

Implements AbstractFactoryInterface.