var/cache/dev/ContainerYDKTVUl/getTranslatableListenerService.php line 25

Open in your IDE?
  1. <?php
  2. namespace ContainerYDKTVUl;
  3. use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
  4. use Symfony\Component\DependencyInjection\Exception\RuntimeException;
  5. /**
  6.  * @internal This class has been auto-generated by the Symfony Dependency Injection Component.
  7.  */
  8. class getTranslatableListenerService extends App_KernelDevDebugContainer
  9. {
  10.     /**
  11.      * Gets the private 'Gedmo\Translatable\TranslatableListener' shared autowired service.
  12.      *
  13.      * @return \Gedmo\Translatable\TranslatableListener
  14.      */
  15.     public static function do($container$lazyLoad true)
  16.     {
  17.         include_once \dirname(__DIR__4).'/vendor/gedmo/doctrine-extensions/src/Translatable/TranslatableListener.php';
  18.         $container->privates['Gedmo\\Translatable\\TranslatableListener'] = $instance = new \Gedmo\Translatable\TranslatableListener();
  19.         $instance->setAnnotationReader(($container->privates['annotations.cached_reader'] ?? $container->getAnnotations_CachedReaderService()));
  20.         $instance->setDefaultLocale(((($container->services['.container.private.session'] ?? $container->load('get_Container_Private_SessionService'))->get("_locale")) ? (($container->services['.container.private.session'] ?? $container->load('get_Container_Private_SessionService'))->get("_locale")) : (($container->privates['app.default_locale'] ?? $container->load('getApp_DefaultLocaleService'))->getLocale())));
  21.         $instance->setTranslatableLocale(((($container->services['.container.private.session'] ?? $container->load('get_Container_Private_SessionService'))->get("_locale")) ? (($container->services['.container.private.session'] ?? $container->load('get_Container_Private_SessionService'))->get("_locale")) : (($container->privates['app.default_locale'] ?? $container->load('getApp_DefaultLocaleService'))->getLocale())));
  22.         $instance->setTranslationFallback(true);
  23.         $instance->setPersistDefaultLocaleTranslation(true);
  24.         return $instance;
  25.     }
  26. }