<?php
namespace Roothirsch\CoreBundle;
use Roothirsch\CoreBundle\Behaviors\Reporter\ReportCompilerPass;
use Roothirsch\CoreBundle\DependencyInjection\Compiler\FieldCompilerPass;
use Roothirsch\CoreBundle\DependencyInjection\RoothirschCoreBundleExtension;
use Roothirsch\CoreBundle\DependencyInjection\RoothirschCoreExtension;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class RoothirschCoreBundle extends Bundle
{
public function getContainerExtension()
{
return new RoothirschCoreExtension();
}
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new FieldCompilerPass());
$container->addCompilerPass(new ReportCompilerPass());
}
}