<?php
/*
* This file is part of the BoShurikTelegramBotBundle.
*
* (c) Alexander Borisov <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace BoShurik\TelegramBotBundle;
use BoShurik\TelegramBotBundle\DependencyInjection\BoShurikTelegramBotExtension;
use BoShurik\TelegramBotBundle\DependencyInjection\Compiler\CommandCompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class BoShurikTelegramBotBundle extends Bundle
{
/**
* {@inheritDoc}
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new CommandCompilerPass());
}
/**
* {@inheritDoc}
*/
public function getContainerExtension()
{
if (null === $this->extension) {
$this->extension = new BoShurikTelegramBotExtension();
}
return $this->extension;
}
}