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

Remove zend-di <-> zend-servicemanager integration #116

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"container-interop/container-interop": "^1.1"
},
"require-dev": {
"zendframework/zend-di": "^2.6",
"zendframework/zend-filter": "^2.6.1",
"zendframework/zend-form": "^2.7",
"zendframework/zend-hydrator": "^1.1 || ^2.1",
Expand Down Expand Up @@ -54,6 +53,7 @@
"zendframework/zend-mvc-plugin-prg": "To provide Post/Redirect/Get functionality within controllers",
"zendframework/zend-psr7bridge": "(^0.2) To consume PSR-7 middleware within the MVC workflow",
"zendframework/zend-serializer": "Zend\\Serializer component",
"zendframework/zend-servicemanager-di": "zend-servicemanager-di provides utilities for integrating zend-di and zend-servicemanager in your zend-mvc application",
"zendframework/zend-validator": "Zend\\Validator component",
"zendframework/zend-view": "Zend\\View component"
},
Expand Down
104 changes: 2 additions & 102 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions doc/book/migration/to-v3-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,28 @@ your application configuration. Components are pushed to the top of the module
list, while modules are pushed to the end. As a development component, it will
not be installed in your production distributions.

## DI-ServiceManager integration

The integration between [zend-servicemanager](https://zendframework.github.io/zend-servicemanager) and
[zend-di](https://github.com/zendframework/zend-di) has been moved to a new
standalone component, [zend-servicemanager-di](https://zendframework.github.io/zend-servicemanager-di/).
In most cases, installing the component will restore the original behavior:

```bash
$ composer require zendframework/zend-servicemanager-di
```

> ### Manual installation
>
> The above assumes you're using the new component installer detailed in the
> [dependency reduction](#dependency-reduction) section, above. If you are not,
> you will need to inject the zend-servicemanager-di module into your
> application manually; follow the [instructions in the zend-servicemanager-di documentation](https://zendframework.github.io/zend-servicemanager-di/)
> to do so.

The new component also contains a [migration document](https://zendframework.github.io/zend-servicemanager-di/migration/v2-to-v3/)
detailing potential issues for users migrating to version 3.

## Routing

Routing was removed from zend-mvc, and moved to a new component,
Expand Down
51 changes: 0 additions & 51 deletions src/Service/DiAbstractServiceFactoryFactory.php

This file was deleted.

60 changes: 0 additions & 60 deletions src/Service/DiFactory.php

This file was deleted.

44 changes: 0 additions & 44 deletions src/Service/DiServiceInitializerFactory.php

This file was deleted.

Loading