zf2timo/zf-mvc-expressive-bridge

Builds a Bridge between Zend Expressive and Plugin Managers of Zend\MVC

1.0.0 2016-03-24 21:11 UTC

This package is auto-updated.

Last update: 2024-10-10 20:34:28 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