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

Commit 897db27

Browse files
committed
Added migration section for #54
Adds an "Application class" section in the v2 to v3 migration document.
1 parent 95aa9ac commit 897db27

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

doc/book/migration/to-v3-0.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@ your application configuration. Components are pushed to the top of the module
3434
list, while modules are pushed to the end. As a development component, it will
3535
not be installed in your production distributions.
3636

37+
## Application class
38+
39+
The following changes were made to the `Zend\Mvc\Application` constructor:
40+
41+
- The first `$configuration` argument was removed, as it was not used.
42+
- Three additional, optional arguments were added:
43+
- `Zend\EventManager\EventManagerInterface $events = null`
44+
- `Zend\Stdlib\RequestInterface $request = null`
45+
- `Zend\Stdlib\ResponseInterface $response = null`
46+
47+
End-users using the skeleton application and the default `Application` factory
48+
will not notice a change. Those who are directly instantiating the `Application`
49+
instance (in production or test code) or who have created their own factory for
50+
the class will need to update their code.
51+
3752
## DI-ServiceManager integration
3853

3954
The integration between [zend-servicemanager](https://zendframework.github.io/zend-servicemanager) and

0 commit comments

Comments
 (0)