Files
kupshop/bundles/KupShop/I18nBundle/I18nBundle.php
2025-08-02 16:30:27 +02:00

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());
}
}