This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Symfony\Component\HttpKernel\HttpKernelInterface; | |
use Symfony\Component\HttpKernel\Event\GetResponseEvent; | |
class LocaleListener | |
{ | |
private $container; | |
private $defaultLocale; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<service id="my.event_listener.locale_listener" class="MyBundle\MyEventListener\LocaleListener"> | |
<tag name="kernel.event_listener" event="kernel.request" method="onKernelRequest" priority="100" /> | |
<argument type="service" id="service_container" /> | |
</service> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Symfony\Bundle\SwiftmailerBundle\DependencyInjection\Compiler; | |
use Symfony\Component\DependencyInjection\Reference; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |
/** | |
* RegisterPluginsPass registers Swiftmailer plugins. | |
* | |
* @author Fabien Potencier <fabien@symfony.com> |