PHPackages                             christianblos/symfony-di-annotation - 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. christianblos/symfony-di-annotation

ActiveLibrary[Framework](/categories/framework)

christianblos/symfony-di-annotation
===================================

Allows you to configure symfony dependency injections via annotations

2.0.0(5y ago)71411MITPHPPHP ^7.4|^8.0

Since Aug 4Pushed 5y ago2 watchersCompare

[ Source](https://github.com/christianblos/symfony-di-annotation)[ Packagist](https://packagist.org/packages/christianblos/symfony-di-annotation)[ RSS](/packages/christianblos-symfony-di-annotation/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (4)Versions (15)Used By (0)

What's this?
------------

[](#whats-this)

This library is an extension of the [Symfony DependencyInjection Component](https://github.com/symfony/dependency-injection). It allows you to configure the DI Container using annotations directly in your classes.

Set up
------

[](#set-up)

### 1. Install via composer:

[](#1-install-via-composer)

`composer require christianblos/symfony-di-annotation`

### 2. Add compiler pass to the ContainerBuilder

[](#2-add-compiler-pass-to-the-containerbuilder)

```
