23 lines
748 B
PHP
Executable File
23 lines
748 B
PHP
Executable File
<?php namespace League\Tactician\Bundle;
|
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use League\Tactician\Bundle\DependencyInjection\Compiler\CommandHandlerPass;
|
|
use League\Tactician\Bundle\DependencyInjection\Compiler\DoctrineMiddlewarePass;
|
|
use League\Tactician\Bundle\DependencyInjection\TacticianExtension;
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
|
|
class TacticianBundle extends Bundle
|
|
{
|
|
public function build(ContainerBuilder $container)
|
|
{
|
|
parent::build($container);
|
|
$container->addCompilerPass(new DoctrineMiddlewarePass());
|
|
$container->addCompilerPass(new CommandHandlerPass());
|
|
}
|
|
|
|
public function getContainerExtension()
|
|
{
|
|
return new TacticianExtension();
|
|
}
|
|
}
|