weglot/translate-bundle

View on GitHub
DependencyInjection/Compiler/RouterCompilerPass.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Weglot\TranslateBundle\DependencyInjection\Compiler;

use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;

/**
 * Class RouterCompilerPass
 * @package Weglot\TranslateBundle\DependencyInjection\Compiler
 */
class RouterCompilerPass implements CompilerPassInterface
{
    /**
     * {@inheritdoc}
     */
    public function process(ContainerBuilder $container)
    {
        $container->setAlias('router', 'weglot_translate.routing.router');
    }
}