Download the PHP package eimanavicius/cakephp-container-interop without Composer
On this page you can find all versions of the php package eimanavicius/cakephp-container-interop. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eimanavicius/cakephp-container-interop
More information about eimanavicius/cakephp-container-interop
Files in eimanavicius/cakephp-container-interop
Package cakephp-container-interop
Short Description Container Interoperability plugin for CakePHP 2.x
License MIT
Informations about the package cakephp-container-interop
Container Interop in CakePHP
Container Interoperability plugin for CakePHP 2.x. This plugin adds the ability to easy configure any service containers compatible with container-interop.
It provides the clean component to access you container or services in container. Also you get container registered in ClassRegistry that allows you to gradually migrate your application.
Installation
Installation through composer is HIGHLY RECOMMENDED. Installation can be done manually, but requires a lot more steps and is not supported officially.
composer
or add requirement to your composer.json
file manually and don't forget to run composer update
Configuration
Plugin loading
Load the plugin as any other plugin in app/Config/bootstrap.php
:
The bootstrap file must be loaded, to set up all configurations needed.
Add pre-configured service container
By installing Zend Service Manager plugin.
More pre-configured service containers will be provided as they appear.
Or configure your container instance
By default container is loaded from file app/Config/container.php
(file should return configured service container instance as in sample below). You can change file location by specifying config value before plugin load:
app/Config/container.php sample
All versions of cakephp-container-interop with dependencies
container-interop/container-interop Version ^1.0
cakephp/cakephp Version ^2.0