Skip to content

Instantly share code, notes, and snippets.

@docteurklein
Created October 2, 2014 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save docteurklein/6899b60264ef768f348d to your computer and use it in GitHub Desktop.
Save docteurklein/6899b60264ef768f348d to your computer and use it in GitHub Desktop.
bundle is its own compiler pass
<?php
class App extends Bundle implements CompilerPassInterface
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass($this);
}
public function process(ContainerBuilder $container)
{
// compiler pass
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment