Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit 6f04717

Browse files
committed
Merge branch 'docs/#82-correct-initializer-migration-phpdoc-method-names'
Close #82
2 parents c966f49 + b2296d2 commit 6f04717

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ All notable changes to this project will be documented in this file, in reverse
2626
- [#78](https://github.com/zendframework/zend-servicemanager/issues/78)
2727
[#79](https://github.com/zendframework/zend-servicemanager/pull/79) creation context was not being correctly passed
2828
to abstract factories when using plugin managers
29+
- [#82](https://github.com/zendframework/zend-servicemanager/pull/82) corrected migration guide in the DocBlock of
30+
the `InitializerInterface`
2931

3032
## 3.0.1 - 2016-01-19
3133

src/InitializerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
*
1717
* If upgrading from v2, take the following steps:
1818
*
19-
* - rename the method `initializer()` to `__invoke()`, and:
19+
* - rename the method `initialize()` to `__invoke()`, and:
2020
* - rename the `$serviceLocator` argument to `$container`, and change the
2121
* typehint to `Interop\Container\ContainerInterface`
2222
* - swap the order of the arguments (so that `$instance` comes second)
23-
* - create an `initializer()` method as defined in this interface, and have it
23+
* - create an `initialize()` method as defined in this interface, and have it
2424
* proxy to `__invoke()`, passing the arguments in the new order.
2525
*
2626
* Once you have tested your code, you can then update your class to only implement

0 commit comments

Comments
 (0)