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

Backwards-compatibility shim for InitializerInterface. More...

Public Member Functions

 initialize ($instance, ServiceLocatorInterface $serviceLocator)
 Initialize.
 
- Public Member Functions inherited from InitializerInterface
 __invoke (ContainerInterface $container, $instance)
 Initialize the given instance.
 

Detailed Description

Backwards-compatibility shim for InitializerInterface.

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 `initialize()` method.

Deprecated:
Use Zend instead.

Member Function Documentation

initialize (   $instance,
ServiceLocatorInterface  $serviceLocator 
)

Initialize.

Parameters
$instance
ServiceLocatorInterface$serviceLocator
Returns
mixed