var/cache/dev/ContainerCSnj9DO/getSessionService.php line 29

Open in your IDE?
  1. <?php
  2. namespace ContainerCSnj9DO;
  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.         include_once \dirname(__DIR__4).'/vendor/pimcore/pimcore/bundles/EcommerceFrameworkBundle/Tools/SessionConfigurator.php';
  24.         $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'));
  25.         $a = new \Pimcore\Session\SessionConfigurator();
  26.         $a->addConfigurator(new \Pimcore\Bundle\AdminBundle\Session\AdminSessionBagConfigurator($container->parameters['pimcore.admin.session.attribute_bags']));
  27.         $a->addConfigurator(($container->privates['Pimcore\\Bundle\\EcommerceFrameworkBundle\\Tools\\SessionConfigurator'] ?? ($container->privates['Pimcore\\Bundle\\EcommerceFrameworkBundle\\Tools\\SessionConfigurator'] = new \Pimcore\Bundle\EcommerceFrameworkBundle\Tools\SessionConfigurator())));
  28.         $a->configure($instance);
  29.         return $instance;
  30.     }
  31. }