for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the TraitorBundle, an RunOpenCode project.
*
* (c) 2017 RunOpenCode
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RunOpenCode\Bundle\Traitor;
use RunOpenCode\Bundle\Traitor\DependencyInjection\CompilerPass;
use RunOpenCode\Bundle\Traitor\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Class TraitorBundle
* @package RunOpenCode\Bundle\Traitor
class TraitorBundle extends Bundle
{
* {@inheritdoc}
public function getContainerExtension()
return new Extension();
}
public function build(ContainerBuilder $container)
$container->addCompilerPass(new CompilerPass(), PassConfig::TYPE_OPTIMIZE);