PHPackages                             vanio/vanio-di-extra-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. vanio/vanio-di-extra-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

vanio/vanio-di-extra-bundle
===========================

Allows to configure dependency injection using annotations

v0.1.0(7y ago)09.2k1MITPHPPHP ^7.0

Since Oct 27Pushed 5y ago10 watchersCompare

[ Source](https://github.com/vaniocz/vanio-di-extra-bundle)[ Packagist](https://packagist.org/packages/vanio/vanio-di-extra-bundle)[ Docs](https://github.com/vaniocz/vanio-di-extra-bundle)[ RSS](/packages/vanio-vanio-di-extra-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (3)Used By (0)

[![Vanio](https://camo.githubusercontent.com/b691445be273912a0905be759555aa166528db3a3606ddf1f25a54e734e7efbb/687474703a2f2f7777772e76616e696f2e637a2f696d672f76616e696f2d6c6f676f2e706e67)](http://www.vanio.cz) Dependency Injection Extra Bundle
===================================================================================================================================================================================================================================================

[](#-dependency-injection-extra-bundle)

[![Build Status](https://camo.githubusercontent.com/8c7f690ced3c2e5919d7cad8f225c24103e7784e8af883a1352b90f6b4e2cdce/68747470733a2f2f7472617669732d63692e6f72672f76616e696f637a2f76616e696f2d64692d65787472612d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vaniocz/vanio-di-extra-bundle)[![Coverage Status](https://camo.githubusercontent.com/7c4297aedc0c133e23f5974b6808b0d2c0d4db9add4a950c9b3ef8f437fe41a9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616e696f637a2f76616e696f2d64692d65787472612d62756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/vaniocz/vanio-di-extra-bundle?branch=master)[![PHP7](https://camo.githubusercontent.com/1707d1cf35d1b3dba207caa68b99d5e4af7689d1c4bf5ad784bf4b1ec532f507/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372d3642374542392e737667)](https://camo.githubusercontent.com/1707d1cf35d1b3dba207caa68b99d5e4af7689d1c4bf5ad784bf4b1ec532f507/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372d3642374542392e737667)[![License](https://camo.githubusercontent.com/6e23f4f23e79322bc9e856e0102a9c0804bca8c0302911318043fcd728391232/68747470733a2f2f706f7365722e707567782e6f72672f76616e696f2f76616e696f2d64692d65787472612d62756e646c652f6c6963656e7365)](https://github.com/vaniocz/vanio-di-extra-bundle/blob/master/LICENSE)

A Symfony2/3 Bundle providing an ability to resolve services by type by calling `getByType` on service container and lazily inject services or parameters into public properties of classes implementing `ContainerAwareInterface` (like controllers, CLI commands or Doctrine fixtures) using `Inject` annotation. JMS DI Extra Bundle has a similar annotation but it covers much more functionality. This bundle is lightweight and does not use AOP.

Example
=======

[](#example)

```
