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

Commit 9677140

Browse files
committed
Merge branch 'feature/remove-zend-serializer' into develop
Close #119
2 parents 12549cb + ba27ee2 commit 9677140

File tree

7 files changed

+39
-151
lines changed

7 files changed

+39
-151
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ for full details on how to migrate your v2 application.
6363
functionality related to exposing and configuring the zend-validator
6464
`ValidatorPluginManager`. That functionality is now exposed directly by the
6565
zend-validator component.
66+
- [#119](https://github.com/zendframework/zend-mvc/pull/119) removes the
67+
functionality related to exposing and configuring the zend-serializer
68+
`SerializerAdapterManager`. That functionality is now exposed directly by the
69+
zend-serializer component.
6670

6771
### Fixed
6872

composer.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"zendframework/zend-json": "^2.6.1 || ^3.0",
3131
"zendframework/zend-log": "^2.7.1",
3232
"zendframework/zend-psr7bridge": "^0.2",
33-
"zendframework/zend-serializer": "^2.6.1",
3433
"fabpot/php-cs-fixer": "1.7.*",
3534
"phpunit/phpunit": "^4.5"
3635
},
@@ -49,7 +48,6 @@
4948
"zendframework/zend-mvc-plugin-identity": "To access the authenticated identity (per zend-authentication) in controllers",
5049
"zendframework/zend-mvc-plugin-prg": "To provide Post/Redirect/Get functionality within controllers",
5150
"zendframework/zend-psr7bridge": "(^0.2) To consume PSR-7 middleware within the MVC workflow",
52-
"zendframework/zend-serializer": "Zend\\Serializer component",
5351
"zendframework/zend-servicemanager-di": "zend-servicemanager-di provides utilities for integrating zend-di and zend-servicemanager in your zend-mvc application",
5452
"zendframework/zend-view": "Zend\\View component"
5553
},

composer.lock

Lines changed: 18 additions & 125 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: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,23 @@ $ composer require zendframework/zend-mvc-plugin-prg
218218
`Zend\Mvc\Controller\Plugin\PostRedirectGet` becomes
219219
`Zend\Mvc\Plugin\Prg\PostRedirectGet`. However, it is still mapped as `prg()`.
220220

221+
## Serializer integration
222+
223+
In version 2, zend-mvc exposed a `SerializerAdapterManager` service by default, and
224+
provided specifications to zend-modulemanager's `ServiceListener`
225+
to allow modules to provide serializer configuration.
226+
227+
This functionality is now removed from zend-mvc. It is now exposed directly by
228+
the [zend-serializer](https://github.com/zendframework/zend-serializer) component
229+
itself. To add it, install zend-serializer
230+
231+
```bash
232+
$ composer require zendframework/zend-serializer
233+
```
234+
235+
Note: the above assumes you have already installed zend-component-installer, per
236+
the section above on [dependency reduction](#dependency-reduction).
237+
221238
## Validator integration
222239

223240
In version 2, zend-mvc exposed a `ValidatorManager` service by default, and

src/Service/ModuleManagerFactory.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,6 @@ public function __invoke(ContainerInterface $container, $name, array $options =
7979
'Zend\ModuleManager\Feature\RouteProviderInterface',
8080
'getRouteConfig'
8181
);
82-
$serviceListener->addServiceManager(
83-
'SerializerAdapterManager',
84-
'serializers',
85-
'Zend\ModuleManager\Feature\SerializerProviderInterface',
86-
'getSerializerConfig'
87-
);
8882
$serviceListener->addServiceManager(
8983
'HydratorManager',
9084
'hydrators',

src/Service/SerializerAdapterPluginManagerFactory.php

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

src/Service/ServiceListenerFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ class ServiceListenerFactory implements FactoryInterface
8484
'PaginatorPluginManager' => 'Zend\Mvc\Service\PaginatorPluginManagerFactory',
8585
'Request' => 'Zend\Mvc\Service\RequestFactory',
8686
'Response' => 'Zend\Mvc\Service\ResponseFactory',
87-
'SerializerAdapterManager' => 'Zend\Mvc\Service\SerializerAdapterPluginManagerFactory',
8887
'ViewHelperManager' => 'Zend\Mvc\Service\ViewHelperManagerFactory',
8988
View\Http\DefaultRenderingStrategy::class => HttpDefaultRenderingStrategyFactory::class,
9089
'ViewFeedStrategy' => 'Zend\Mvc\Service\ViewFeedStrategyFactory',

0 commit comments

Comments
 (0)