eZPublishCommunityProject  2013.6
eZ\Bundle\EzPublishCoreBundle\EventListener\LocaleListener Class Reference

Enhanced LocaleListener, injecting the converted locale extracted from eZ Publish configuration. More...

+ Inheritance diagram for eZ\Bundle\EzPublishCoreBundle\EventListener\LocaleListener:
+ Collaboration diagram for eZ\Bundle\EzPublishCoreBundle\EventListener\LocaleListener:

Public Member Functions

 onKernelRequest (GetResponseEvent $event)
 
 setLocaleConverter (LocaleConverterInterface $localeConverter)
 
 setServiceContainer (ContainerInterface $container)
 

Private Member Functions

 getConfigResolver ()
 Returns the config resolver. More...
 

Private Attributes

 $container
 
 $localeConverter
 

Detailed Description

Enhanced LocaleListener, injecting the converted locale extracted from eZ Publish configuration.

Member Function Documentation

eZ\Bundle\EzPublishCoreBundle\EventListener\LocaleListener::getConfigResolver ( )
private

Returns the config resolver.

It uses the service container for lazy loading purpose.

Returns

Referenced by eZ\Bundle\EzPublishCoreBundle\EventListener\LocaleListener\onKernelRequest().

eZ\Bundle\EzPublishCoreBundle\EventListener\LocaleListener::onKernelRequest ( GetResponseEvent  $event)
eZ\Bundle\EzPublishCoreBundle\EventListener\LocaleListener::setLocaleConverter ( LocaleConverterInterface  $localeConverter)
Parameters
\eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverterInterface$localeConverter
eZ\Bundle\EzPublishCoreBundle\EventListener\LocaleListener::setServiceContainer ( ContainerInterface  $container)
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$container

Member Data Documentation

eZ\Bundle\EzPublishCoreBundle\EventListener\LocaleListener::$container
private
eZ\Bundle\EzPublishCoreBundle\EventListener\LocaleListener::$localeConverter
private

The documentation for this class was generated from the following file: