Zend Framework
3.0
|
Backwards-compatibility shim for AbstractFactoryInterface. More...
Public Member Functions | |
canCreateServiceWithName (ServiceLocatorInterface $serviceLocator, $name, $requestedName) | |
Determine if we can create a service with name. | |
createServiceWithName (ServiceLocatorInterface $serviceLocator, $name, $requestedName) | |
Create service with name. | |
Public Member Functions inherited from AbstractFactoryInterface | |
canCreate (ContainerInterface $container, $requestedName) | |
Can the factory create an instance for the service? | |
Public Member Functions inherited from FactoryInterface | |
__invoke (ContainerInterface $container, $requestedName, array $options=null) | |
Create an object. | |
Backwards-compatibility shim for AbstractFactoryInterface.
Implementations should update to implement only Zend.
If upgrading from v2, take the following steps:
Once you have tested your code, you can then update your class to only implement Zend, and remove the `canCreateServiceWithName()` and `createServiceWithName()` methods.
canCreateServiceWithName | ( | ServiceLocatorInterface | $serviceLocator, |
$name, | |||
$requestedName | |||
) |
Determine if we can create a service with name.
ServiceLocatorInterface | $serviceLocator | |
$name | ||
$requestedName |
Implemented in DiStrictAbstractServiceFactory, ContainerAbstractServiceFactory, FormAbstractServiceFactory, NavigationAbstractServiceFactory, InputFilterAbstractServiceFactory, RouteInvokableFactory, AdapterAbstractServiceFactory, StorageCacheAbstractServiceFactory, LoggerAbstractServiceFactory, DiAbstractServiceFactory, and AbstractConfigFactory.
createServiceWithName | ( | ServiceLocatorInterface | $serviceLocator, |
$name, | |||
$requestedName | |||
) |
Create service with name.
ServiceLocatorInterface | $serviceLocator | |
$name | ||
$requestedName |
Implemented in DiStrictAbstractServiceFactory, RouteInvokableFactory, ContainerAbstractServiceFactory, NavigationAbstractServiceFactory, FormAbstractServiceFactory, InputFilterAbstractServiceFactory, AbstractConfigFactory, AdapterAbstractServiceFactory, StorageCacheAbstractServiceFactory, LoggerAbstractServiceFactory, and DiAbstractServiceFactory.