Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
DbTableGatewayFactory Class Reference

Public Member Functions

 __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

 
 createService (ServiceLocatorInterface $container, $name=null, $requestedName=DbTableGateway::class)
 Create and return a DbTableGateway instance (v2)
 
 setCreationOptions (array $creationOptions)
 Options to use with factory (v2)
 
- Public Member Functions inherited from FactoryInterface
 createService (ServiceLocatorInterface $serviceLocator)
 Create service.
 

Protected Attributes

 $creationOptions
 

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

Returns
DbTableGateway

Implements FactoryInterface.

createService ( ServiceLocatorInterface  $container,
  $name = null,
  $requestedName = DbTableGateway::class 
)

Create and return a DbTableGateway instance (v2)

Parameters
ServiceLocatorInterface$container
null | string$name
string$requestedName
Returns
DbTableGateway
setCreationOptions ( array  $creationOptions)

Options to use with factory (v2)

Parameters
array$creationOptions
Returns
void

Member Data Documentation

$creationOptions
protected