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

Commit a824728

Browse files
committed
Merge pull request #116 from weierophinney/feature/remove-zend-di
Remove zend-di <-> zend-servicemanager integration
2 parents d734c64 + 59633c2 commit a824728

11 files changed

+25
-589
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"container-interop/container-interop": "^1.1"
2525
},
2626
"require-dev": {
27-
"zendframework/zend-di": "^2.6",
2827
"zendframework/zend-filter": "^2.6.1",
2928
"zendframework/zend-form": "^2.7",
3029
"zendframework/zend-hydrator": "^1.1 || ^2.1",
@@ -54,6 +53,7 @@
5453
"zendframework/zend-mvc-plugin-prg": "To provide Post/Redirect/Get functionality within controllers",
5554
"zendframework/zend-psr7bridge": "(^0.2) To consume PSR-7 middleware within the MVC workflow",
5655
"zendframework/zend-serializer": "Zend\\Serializer component",
56+
"zendframework/zend-servicemanager-di": "zend-servicemanager-di provides utilities for integrating zend-di and zend-servicemanager in your zend-mvc application",
5757
"zendframework/zend-validator": "Zend\\Validator component",
5858
"zendframework/zend-view": "Zend\\View component"
5959
},

composer.lock

Lines changed: 2 additions & 102 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,28 @@ 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+
## DI-ServiceManager integration
38+
39+
The integration between [zend-servicemanager](https://zendframework.github.io/zend-servicemanager) and
40+
[zend-di](https://github.com/zendframework/zend-di) has been moved to a new
41+
standalone component, [zend-servicemanager-di](https://zendframework.github.io/zend-servicemanager-di/).
42+
In most cases, installing the component will restore the original behavior:
43+
44+
```bash
45+
$ composer require zendframework/zend-servicemanager-di
46+
```
47+
48+
> ### Manual installation
49+
>
50+
> The above assumes you're using the new component installer detailed in the
51+
> [dependency reduction](#dependency-reduction) section, above. If you are not,
52+
> you will need to inject the zend-servicemanager-di module into your
53+
> application manually; follow the [instructions in the zend-servicemanager-di documentation](https://zendframework.github.io/zend-servicemanager-di/)
54+
> to do so.
55+
56+
The new component also contains a [migration document](https://zendframework.github.io/zend-servicemanager-di/migration/v2-to-v3/)
57+
detailing potential issues for users migrating to version 3.
58+
3759
## Routing
3860

3961
Routing was removed from zend-mvc, and moved to a new component,

src/Service/DiAbstractServiceFactoryFactory.php

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/Service/DiFactory.php

Lines changed: 0 additions & 60 deletions
This file was deleted.

src/Service/DiServiceInitializerFactory.php

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)