Interface InitializerInterface

Summary

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

Description

Backwards-compatibility shim for InitializerInterface.

Implementations should update to implement only Zend\ServiceManager\Initializer\InitializerInterface.

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\Initializer\InitializerInterface, and remove the initialize() method.

Methods

Name Description Defined By
__invoke() Initialize the given instance InitializerInterface
initialize() Initialize InitializerInterface

Method Details

__invoke()

Initialize the given instance

Parameter Name Type Description
$container \ContainerInterface
$instance object

Returns: void

initialize()

Initialize

Parameter Name Type Description
$instance
$serviceLocator \ServiceLocatorInterface
$instance

Returns: mixed

Top