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

Removes zend-filter from zend-mvc #117

Closed
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 @@ -24,7 +24,6 @@
"container-interop/container-interop": "^1.1"
},
"require-dev": {
"zendframework/zend-filter": "^2.6.1",
"zendframework/zend-form": "^2.7",
"zendframework/zend-hydrator": "^1.1 || ^2.1",
"zendframework/zend-inputfilter": "^2.6",
Expand All @@ -39,7 +38,6 @@
"suggest": {
"zendframework/zend-config": "Zend\\Config component",
"zendframework/zend-di": "Zend\\Di component",
"zendframework/zend-filter": "Zend\\Filter component",
"zendframework/zend-http": "Zend\\Http component",
"zendframework/zend-inputfilter": "Zend\\Inputfilter component",
"zendframework/zend-json": "(^2.6.1 || ^3.0) To auto-deserialize JSON body content in AbstractRestfulController extensions, when json_decode is unavailable",
Expand Down
4 changes: 2 additions & 2 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 @@ -100,6 +100,23 @@ ensure console tooling continues to work.
> [zf-console](https://github.com/zfcampus/zf-console) or
> [Aura.Cli](https://github.com/auraphp/Aura.Cli).

## Filter integration

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

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

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

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

## i18n integration

Internationalization tooling, including:
Expand Down
17 changes: 0 additions & 17 deletions src/Service/FilterManagerFactory.php

This file was deleted.

6 changes: 0 additions & 6 deletions src/Service/ModuleManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ public function __invoke(ContainerInterface $container, $name, array $options =
'Zend\ModuleManager\Feature\ValidatorProviderInterface',
'getValidatorConfig'
);
$serviceListener->addServiceManager(
'FilterManager',
'filters',
'Zend\ModuleManager\Feature\FilterProviderInterface',
'getFilterConfig'
);
$serviceListener->addServiceManager(
'FormElementManager',
'form_elements',
Expand Down
1 change: 0 additions & 1 deletion src/Service/ServiceListenerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class ServiceListenerFactory implements FactoryInterface
'ControllerManager' => 'Zend\Mvc\Service\ControllerManagerFactory',
'ControllerPluginManager' => 'Zend\Mvc\Service\ControllerPluginManagerFactory',
'DispatchListener' => 'Zend\Mvc\Service\DispatchListenerFactory',
'FilterManager' => 'Zend\Mvc\Service\FilterManagerFactory',
'FormAnnotationBuilder' => 'Zend\Mvc\Service\FormAnnotationBuilderFactory',
'FormElementManager' => 'Zend\Mvc\Service\FormElementManagerFactory',
'HttpExceptionStrategy' => HttpExceptionStrategyFactory::class,
Expand Down