Interface InitializerInterface

Summary

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

Description

Backwards-compatibility shim for InitializerInterface.

Implementations should update to implement only Laminas\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 Laminas\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