var/cache/dev/ContainerKxN8iRk/getSession_Storage_NativeService.php line 20

Open in your IDE?
  1. <?php
  2. namespace ContainerKxN8iRk;
  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 getSession_Storage_NativeService extends App_KernelDevDebugContainer
  9. {
  10.     /**
  11.      * Gets the private 'session.storage.native' shared service.
  12.      *
  13.      * @return \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage
  14.      *
  15.      * @deprecated Since symfony/framework-bundle 5.3: The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead.
  16.      */
  17.     public static function do($container$lazyLoad true)
  18.     {
  19.         trigger_deprecation('symfony/framework-bundle''5.3''The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead.');
  20.         include_once \dirname(__DIR__4).'/vendor/symfony/http-foundation/Session/Storage/Handler/AbstractSessionHandler.php';
  21.         include_once \dirname(__DIR__4).'/vendor/symfony/http-foundation/Session/Storage/Handler/RedisSessionHandler.php';
  22.         $a = new \Redis();
  23.         $a->connect($container->getEnv('REDIS_HOST'), $container->getEnv('int:REDIS_PORT'));
  24.         return $container->privates['session.storage.native'] = new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage($container->parameters['session.storage.options'], new \Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler($a), $container->load('getSession_Storage_MetadataBagService'));
  25.     }
  26. }