zendframework / zend-servicemanager

ServiceManager component from Zend Framework
BSD 3-Clause "New" or "Revised" License
188 stars 89 forks source link

Fix code in doc/book which produce fatal errors #90

Closed tasmaniski closed 8 years ago

tasmaniski commented 8 years ago

Without third argument (array $options = null) the code produce error

Fatal error: __invoke() must be compatible with Zend\ServiceManager\Initializer\InitializerInterface
weierophinney commented 8 years ago

Cherry-picked to master for release with 3.0.3. In the future, please issue hotfixes/documentation fixes against the master branch; the develop branch is intended for new features specifically.

Thanks for the patch!