PHPackages                             icanboogie/bind-symfony-dependency-injection - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. icanboogie/bind-symfony-dependency-injection

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

icanboogie/bind-symfony-dependency-injection
============================================

Binds symfony/dependency-injection to ICanBoogie

v5.0.0(4y ago)0935↓84.6%1BSD-3-ClausePHPPHP &gt;=7.2CI failing

Since May 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ICanBoogie/bind-symfony-dependency-injection)[ Packagist](https://packagist.org/packages/icanboogie/bind-symfony-dependency-injection)[ Docs](https://icanboogie.org/)[ RSS](/packages/icanboogie-bind-symfony-dependency-injection/feed)WikiDiscussions 6.0 Synced 3w ago

READMEChangelog (1)Dependencies (6)Versions (4)Used By (1)

bind-symfony-dependency-injection
=================================

[](#bind-symfony-dependency-injection)

[![Release](https://camo.githubusercontent.com/e999eb982cf756bd0865f81fe663c2e431a9c9d3301606155fd86aa853c17136/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6963616e626f6f6769652f2533436e616d652533452e737667)](https://packagist.org/packages/icanboogie/%3Cname%3E)[![Code Coverage](https://camo.githubusercontent.com/c1d3a992b851d5f44ddde564cb449bcab5eb35ee1119ea97b36f860ea3a07e41/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4943616e426f6f6769652f2533434e616d652533452f62616467652e7376673f6272616e63683d362e30)](https://coveralls.io/r/ICanBoogie/%3CName%3E?branch=6.0)[![Downloads](https://camo.githubusercontent.com/4d27adfdd4204535853e92e28951ef80d9fec0fda0d32b0cfcbefeadc1f7d897/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6963616e626f6f6769652f2533436e616d652533452e737667)](https://packagist.org/packages/icanboogie/%3Cname%3E)

Together with [icanboogie/service](https://github.com/ICanBoogie/Service/), this package binds [symfony/dependency-injection](https://symfony.com/doc/current/components/dependency_injection.html) to [ICanBoogie](https://icanboogie.org) and allows the container to be used to provide services.

Obtaining services
------------------

[](#obtaining-services)

Services can be obtained using a service reference or the container.

The following example demonstrates how services can be obtain using references:

```
