var/cache/dev/ContainerO22g0I3/getSessionService.php line 20

Open in your IDE?
  1. <?php
  2. namespace ContainerO22g0I3;
  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 getSessionService extends App_KernelDevDebugContainer
  9. {
  10.     /**
  11.      * Gets the public 'session' shared autowired service.
  12.      *
  13.      * @return \Symfony\Component\HttpFoundation\Session\Session
  14.      *
  15.      * @deprecated Since symfony/framework-bundle 5.3: The "session" service and "SessionInterface" alias are deprecated, use "$requestStack->getSession()" instead.
  16.      */
  17.     public static function do($container$lazyLoad true)
  18.     {
  19.         trigger_deprecation('symfony/framework-bundle''5.3''The "session" service and "SessionInterface" alias are deprecated, use "$requestStack->getSession()" instead.');
  20.         include_once \dirname(__DIR__4).'/vendor/pimcore/pimcore/lib/Session/SessionConfiguratorInterface.php';
  21.         include_once \dirname(__DIR__4).'/vendor/pimcore/pimcore/lib/Session/SessionConfigurator.php';
  22.         include_once \dirname(__DIR__4).'/vendor/pimcore/pimcore/bundles/AdminBundle/Session/AdminSessionBagConfigurator.php';
  23.         $container->services['session'] = $instance = new \Symfony\Component\HttpFoundation\Session\Session(($container->privates['session.storage.native'] ?? $container->load('getSession_Storage_NativeService')), NULL$container->load('getSession_FlashBagService'));
  24.         $a = new \Pimcore\Session\SessionConfigurator();
  25.         $a->addConfigurator(new \Pimcore\Bundle\AdminBundle\Session\AdminSessionBagConfigurator($container->parameters['pimcore.admin.session.attribute_bags']));
  26.         $a->configure($instance);
  27.         return $instance;
  28.     }
  29. }