Download the PHP package ppokatilo/magic-injection-bundle without Composer
On this page you can find all versions of the php package ppokatilo/magic-injection-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package magic-injection-bundle
magic-injection-bundle
This Symfony2 bundle provides a way to magically inject dependencies into your services. The dependencies will not be available in the constructor. To use it, you need to complete the following steps:
- Add the tag
magic_injection.injectable_service
to the service you wish to inject. The tag takes an optional argument calledtype
, which you can use to group injectable services. - Add the tag
magic_injection.injection_target
to the service which should receive the injected services. - Finally, annotate properties with the
MagicInjection
annotation, which will take an optionaltype
argument that refers to a group of injectable services.
Example usage
-
services.yml
- MyServiceB.php
All versions of magic-injection-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.2
doctrine/annotations Version 1.*
symfony/config Version ~2.0
symfony/dependency-injection Version ~2.0
symfony/http-kernel Version ~2.0
doctrine/annotations Version 1.*
symfony/config Version ~2.0
symfony/dependency-injection Version ~2.0
symfony/http-kernel Version ~2.0
The package ppokatilo/magic-injection-bundle contains the following files
Loading the files please wait ....