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

Removes zend-serializer dependency #119

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: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"zendframework/zend-json": "^2.6.1 || ^3.0",
"zendframework/zend-log": "^2.7.1",
"zendframework/zend-psr7bridge": "^0.2",
"zendframework/zend-serializer": "^2.6.1",
"fabpot/php-cs-fixer": "1.7.*",
"phpunit/phpunit": "^4.5"
},
Expand All @@ -49,7 +48,6 @@
"zendframework/zend-mvc-plugin-identity": "To access the authenticated identity (per zend-authentication) in controllers",
"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-view": "Zend\\View component"
},
Expand Down
143 changes: 18 additions & 125 deletions composer.lock

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

17 changes: 17 additions & 0 deletions doc/book/migration/to-v3-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,23 @@ $ composer require zendframework/zend-mvc-plugin-prg
`Zend\Mvc\Controller\Plugin\PostRedirectGet` becomes
`Zend\Mvc\Plugin\Prg\PostRedirectGet`. However, it is still mapped as `prg()`.

## Serializer integration

In version 2, zend-mvc exposed a `SerializerAdapterManager` service by default, and
provided specifications to zend-modulemanager's `ServiceListener`
to allow modules to provide serializer configuration.

This functionality is now removed from zend-mvc. It is now exposed directly by
the [zend-serializer](https://github.com/zendframework/zend-serializer) component
itself. To add it, install zend-serializer

```bash
$ composer require zendframework/zend-serializer
```

Note: the above assumes you have already installed zend-component-installer, per
the section above on [dependency reduction](#dependency-reduction).

## Validator integration

In version 2, zend-mvc exposed a `ValidatorManager` service by default, and
Expand Down
6 changes: 0 additions & 6 deletions src/Service/ModuleManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@ public function __invoke(ContainerInterface $container, $name, array $options =
'Zend\ModuleManager\Feature\RouteProviderInterface',
'getRouteConfig'
);
$serviceListener->addServiceManager(
'SerializerAdapterManager',
'serializers',
'Zend\ModuleManager\Feature\SerializerProviderInterface',
'getSerializerConfig'
);
$serviceListener->addServiceManager(
'HydratorManager',
'hydrators',
Expand Down
17 changes: 0 additions & 17 deletions src/Service/SerializerAdapterPluginManagerFactory.php

This file was deleted.

1 change: 0 additions & 1 deletion src/Service/ServiceListenerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ class ServiceListenerFactory implements FactoryInterface
'PaginatorPluginManager' => 'Zend\Mvc\Service\PaginatorPluginManagerFactory',
'Request' => 'Zend\Mvc\Service\RequestFactory',
'Response' => 'Zend\Mvc\Service\ResponseFactory',
'SerializerAdapterManager' => 'Zend\Mvc\Service\SerializerAdapterPluginManagerFactory',
'ViewHelperManager' => 'Zend\Mvc\Service\ViewHelperManagerFactory',
View\Http\DefaultRenderingStrategy::class => HttpDefaultRenderingStrategyFactory::class,
'ViewFeedStrategy' => 'Zend\Mvc\Service\ViewFeedStrategyFactory',
Expand Down