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

Commit

Permalink
Merge branch 'docs/#82-correct-initializer-migration-phpdoc-method-na…
Browse files Browse the repository at this point in the history
…mes'

Close #82
  • Loading branch information
Ocramius committed Jan 24, 2016
2 parents c966f49 + b2296d2 commit 6f04717
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ All notable changes to this project will be documented in this file, in reverse
- [#78](https://github.com/zendframework/zend-servicemanager/issues/78)
[#79](https://github.com/zendframework/zend-servicemanager/pull/79) creation context was not being correctly passed
to abstract factories when using plugin managers
- [#82](https://github.com/zendframework/zend-servicemanager/pull/82) corrected migration guide in the DocBlock of
the `InitializerInterface`

## 3.0.1 - 2016-01-19

Expand Down
4 changes: 2 additions & 2 deletions src/InitializerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
*
* If upgrading from v2, take the following steps:
*
* - rename the method `initializer()` to `__invoke()`, and:
* - 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 `initializer()` method as defined in this interface, and have it
* - 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
Expand Down

0 comments on commit 6f04717

Please sign in to comment.