Download the PHP package adamlundrigan/ldc-zf1-di-leaguecontainer without Composer
On this page you can find all versions of the php package adamlundrigan/ldc-zf1-di-leaguecontainer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download adamlundrigan/ldc-zf1-di-leaguecontainer
More information about adamlundrigan/ldc-zf1-di-leaguecontainer
Files in adamlundrigan/ldc-zf1-di-leaguecontainer
Download adamlundrigan/ldc-zf1-di-leaguecontainer
More information about adamlundrigan/ldc-zf1-di-leaguecontainer
Files in adamlundrigan/ldc-zf1-di-leaguecontainer
Vendor adamlundrigan
Package ldc-zf1-di-leaguecontainer
Short Description Basic controller dependency injection in ZF1 with League\Container
License BSD-3-Clause
Package ldc-zf1-di-leaguecontainer
Short Description Basic controller dependency injection in ZF1 with League\Container
License BSD-3-Clause
Please rate this library. Is it a good library?
Informations about the package ldc-zf1-di-leaguecontainer
LdcZf1DiLeagueContainer
What?
It's a simple glue layer which injects services registered in a League\Container into a ZF1 controller.
Heavily based on @weierophinney's now-many-moons-ago blog post "A Simple Resource Injector for ZF Action Controllers".
How?
-
Install the Composer package:
-
Register the helper in your ZF1 application bootstrap:
-
In each controller, define a list of dependencies to inject:
If you use a non-numeric key for any value of
$dependencies
the injector will use that as the controller property to inject into. - Profit! The injector will create a public property on the controller instance for each named service.
All versions of ldc-zf1-di-leaguecontainer with dependencies
PHP Build Version
Package Version
Requires
league/container Version
^1.3
The package adamlundrigan/ldc-zf1-di-leaguecontainer contains the following files
Loading the files please wait ....