chill-bundles/ChillMainBundle.php
Julien Fastré 722709c432 check config of available language
check that the configuration is consistent with fallback locale : the fallback locale must be comprised in chill_main.available_languages.

+tests

refs #332
2015-02-05 16:15:15 +01:00

19 lines
582 B
PHP

<?php
namespace Chill\MainBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Chill\MainBundle\DependencyInjection\SearchableServicesCompilerPass;
use Chill\MainBundle\DependencyInjection\ConfigConsistencyCompilerPass;
class ChillMainBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new SearchableServicesCompilerPass());
$container->addCompilerPass(new ConfigConsistencyCompilerPass());
}
}