PHPackages                             bangpound/callable-compiler-pass - 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. bangpound/callable-compiler-pass

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

bangpound/callable-compiler-pass
================================

Create compiler passes in Symfony without defining another class

1.0.0(10y ago)68221[1 issues](https://github.com/bangpound/callable-compiler-pass/issues)MITPHPPHP &gt;=5.4.0

Since Mar 11Pushed 10y ago1 watchersCompare

[ Source](https://github.com/bangpound/callable-compiler-pass)[ Packagist](https://packagist.org/packages/bangpound/callable-compiler-pass)[ RSS](/packages/bangpound-callable-compiler-pass/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Callable Compiler Pass [![Build Status](https://camo.githubusercontent.com/55d3cbaed6fece3cac3e69bef78e460562943ff9bb881152d91aa9f3df90daac/68747470733a2f2f7472617669732d63692e6f72672f62616e67706f756e642f63616c6c61626c652d636f6d70696c65722d706173732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bangpound/callable-compiler-pass)
======================================================================================================================================================================================================================================================================================================================================================

[](#callable-compiler-pass-)

Use this implementation of `CompilerPassInterface` to [create compiler passes](http://symfony.com/doc/current/components/dependency_injection/compilation.html) in Symfony without defining another class.

Usage
-----

[](#usage)

You should use this class wherever you instantiate a container compiler pass to modify the Symfony dependency injection container. For typical Symfony applications, this happens in a bundle.

Without `CallableCompilerPass`, your bundle class would add the compiler pass this way:

```
