var/cache/dev/ContainerETD9SGk/getSessionService.php line 27

Open in your IDE?
  1. <?php
  2. namespace ContainerETD9SGk;
  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/symfony/http-foundation/Session/SessionBagInterface.php';
  21.         include_once \dirname(__DIR__4).'/vendor/symfony/http-foundation/Session/Attribute/AttributeBagInterface.php';
  22.         include_once \dirname(__DIR__4).'/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php';
  23.         include_once \dirname(__DIR__4).'/vendor/symfony/http-foundation/Session/Attribute/NamespacedAttributeBag.php';
  24.         include_once \dirname(__DIR__4).'/vendor/pimcore/pimcore/lib/Session/SessionConfiguratorInterface.php';
  25.         include_once \dirname(__DIR__4).'/vendor/pimcore/pimcore/lib/Session/SessionConfigurator.php';
  26.         include_once \dirname(__DIR__4).'/vendor/pimcore/pimcore/bundles/AdminBundle/Session/AdminSessionBagConfigurator.php';
  27.         include_once \dirname(__DIR__4).'/vendor/pimcore/pimcore/bundles/EcommerceFrameworkBundle/Tools/SessionConfigurator.php';
  28.         $container->services['session'] = $instance = new \Symfony\Component\HttpFoundation\Session\Session(($container->privates['session.storage.native'] ?? $container->load('getSession_Storage_NativeService')), new \Symfony\Component\HttpFoundation\Session\Attribute\NamespacedAttributeBag(), $container->load('getSession_FlashBagService'));
  29.         $a = new \Pimcore\Session\SessionConfigurator();
  30.         $a->addConfigurator(new \Pimcore\Bundle\AdminBundle\Session\AdminSessionBagConfigurator($container->parameters['pimcore.admin.session.attribute_bags']));
  31.         $a->addConfigurator(($container->privates['Pimcore\\Bundle\\EcommerceFrameworkBundle\\Tools\\SessionConfigurator'] ?? ($container->privates['Pimcore\\Bundle\\EcommerceFrameworkBundle\\Tools\\SessionConfigurator'] = new \Pimcore\Bundle\EcommerceFrameworkBundle\Tools\SessionConfigurator())));
  32.         $a->configure($instance);
  33.         return $instance;
  34.     }
  35. }