Zend Framework  3.0
Public Member Functions | List of all members
AbstractFactoryInterface Interface Reference

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.
 

Detailed Description

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.

Deprecated:
Use Zend instead.

Member Function Documentation

canCreateServiceWithName ( ServiceLocatorInterface  $serviceLocator,
  $name,
  $requestedName 
)
createServiceWithName ( ServiceLocatorInterface  $serviceLocator,
  $name,
  $requestedName 
)