<?php
namespace Boab\CmsBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Boab\CmsBundle\DependencyInjection\Compiler\ContentTypePass;
use Boab\CmsBundle\DependencyInjection\Compiler\AppPass;
use Boab\CmsBundle\DependencyInjection\Compiler\FlysystemLoaderPass;
use Boab\CmsBundle\DependencyInjection\Compiler\SMSMessengerLoaderPass;
class BoabCmsBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new ContentTypePass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 32);
$container->addCompilerPass(new AppPass());
$container->addCompilerPass(new SMSMessengerLoaderPass());
$container->addCompilerPass(new FlysystemLoaderPass);
}
public function getAlias()
{
return 'boab_cms';
}
}