use newest zend modules
[GitHub/Stricted/Domain-Control-Panel.git] / vendor / Zend / ServiceManager / InitializerInterface.php
index 7e7f793fcbd6189d645f30b999689c694d0d990a..7e4c65cf1e5c478acc9441da3cccb1383f8c4afb 100644 (file)
@@ -9,7 +9,27 @@
 
 namespace Zend\ServiceManager;
 
-interface InitializerInterface
+/**
+ * Backwards-compatibility shim for InitializerInterface.
+ *
+ * Implementations should update to implement only Zend\ServiceManager\Initializer\InitializerInterface.
+ *
+ * If upgrading from v2, take the following steps:
+ *
+ * - rename the method `initialize()` to `__invoke()`, and:
+ *   - rename the `$serviceLocator` argument to `$container`, and change the
+ *     typehint to `Interop\Container\ContainerInterface`
+ *   - swap the order of the arguments (so that `$instance` comes second)
+ * - create an `initialize()` method as defined in this interface, and have it
+ *   proxy to `__invoke()`, passing the arguments in the new order.
+ *
+ * Once you have tested your code, you can then update your class to only implement
+ * Zend\ServiceManager\Initializer\InitializerInterface, and remove the `initialize()`
+ * method.
+ *
+ * @deprecated Use Zend\ServiceManager\Initializer\InitializerInterface instead.
+ */
+interface InitializerInterface extends Initializer\InitializerInterface
 {
     /**
      * Initialize