21 lines
584 B
PHP
21 lines
584 B
PHP
<?php
|
|
|
|
namespace KupShop\I18nBundle;
|
|
|
|
use KupShop\I18nBundle\DependencyInjection\Compiler\TranslationPass;
|
|
use KupShop\I18nBundle\Translations\BaseTranslation;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
|
|
class I18nBundle extends Bundle
|
|
{
|
|
public function build(ContainerBuilder $container)
|
|
{
|
|
$container->registerForAutoconfiguration(BaseTranslation::class)
|
|
->addTag('kupshop.translation')
|
|
->setAutowired(true);
|
|
|
|
$container->addCompilerPass(new TranslationPass());
|
|
}
|
|
}
|