Interface DelegatorFactoryInterface

Summary

Fully Qualified Name: Zend\ServiceManager\DelegatorFactoryInterface
Extends: DelegatorFactoryInterface

Description

Backwards-compatibility shim for DelegatorFactoryInterface.

Implementations should update to implement only Zend\ServiceManager\Factory\DelegatorFactoryInterface.

If upgrading from v2, take the following steps:

Once you have tested your code, you can then update your class to only implement Zend\ServiceManager\Factory\DelegatorFactoryInterface, and remove the createDelegatorWithName() method.

Methods

Name Description Defined By
__invoke() A factory that creates delegates of a given service DelegatorFactoryInterface
createDelegatorWithName() A factory that creates delegates of a given service DelegatorFactoryInterface

Method Details

__invoke()

A factory that creates delegates of a given service

Parameter Name Type Description
$container \ContainerInterface
$name string
$callback callable
$options null|array

Returns: object

createDelegatorWithName()

A factory that creates delegates of a given service

Parameter Name Type Description
$serviceLocator \ServiceLocatorInterface the
$name string the
$requestedName string the
$callback callable the

Returns: mixed

Top