zf2timo / zf-mvc-expressive-bridge
Builds a Bridge between Zend Expressive and Plugin Managers of Zend\MVC
Installs: 2 535
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
Requires (Dev)
- zendframework/zend-filter: @stable
- zendframework/zend-form: @stable
- zendframework/zend-hydrator: @stable
- zendframework/zend-inputfilter: @stable
- zendframework/zend-servicemanager: @stable
- zendframework/zend-validator: @stable
Suggests
- zendframework/zend-filter: Zend\Filter component
- zendframework/zend-form: Zend\From component
- zendframework/zend-hydrator: Zend\Hydrator component
- zendframework/zend-inputfilter: Zend\InputFilter component
- zendframework/zend-validator: Zend\Validator component
This package is auto-updated.
Last update: 2024-12-10 20:51:18 UTC
README
Currently all Factories for the Zend PluginManagers are in the Zend\MVC Package. When the next iteration of Zend Framework is released, all Factories are moved to their correct Packages. But until then you can install this Bridge
All Factories just copied form the Zend\MVC@2.7.3 Packages. They only extended slightly to load the Config from the ContainerInterface - because it is not automatically injected by Expressive.
Installation
composer:
composer require zf2timo/zf-mvc-expressive-bridge
The other Packages are not installed automatically - they are only suggest. I don't want to bloat your Application with unused Packages. So it is on your side, to add the correct dependencies.
Configuration
Example for the InputFilterManager:
// config/autoload/dependencies.global.php return [ 'dependencies' => [ 'factories' => [ Zend\InputFilter\InputFilter::class => \zf2timo\Bridge\Factory\InputFilterManagerFactory::class ] ], ];
The Configuration Keys are followed by ZF2 ServiceManager Keys:
More Information: Rob Allen Zend\ServiceManager configuration keys