tobias / zend-expressive-filter-delegator
This package is abandoned and no longer maintained.
No replacement package was suggested.
FilterPluginManager delegator to create filters from config.
1.0.0
2016-12-28 12:06 UTC
Requires
- php: ^5.6 || ^7.0
- zendframework/zend-filter: ^2.0
- zendframework/zend-servicemanager: ^2.7.6 || ^3.0.0
Requires (Dev)
- phpunit/phpunit: ^4.6 || ^5.2.10
- zendframework/zend-coding-standard: ~1.0.0
This package is auto-updated.
Last update: 2020-02-01 19:23:55 UTC
README
Delegator for Zend FilterPluginManager
This package provides a delegator for the FilterPluginManager which configures the PluginManager to use the service configuration from filters
from your config.
The package is intended to be used with Zend Expressive Skeleton or any other Zend Expressive application.
Installation
The easiest way to install this package is through composer:
$ composer require tobias/zend-expressive-filter-delegator
Configuration
In the general case where you are only using a single connection, it's enough to define the delegator factory for the FilterManager:
return [ 'dependencies' => [ 'delegators' => [ 'FilterManager' => [ \Tobias\Expressive\Filter\FilterManagerDelegatorFactory::class, ], ], ], ];
Using Expressive Config Manager
If you're using the Expressive Config Manager you can easily add the ConfigProvider class.
$configManager = new ConfigManager( [ \Tobias\Expressive\Filter\ConfigProvider::class, ] );