var/cache/dev/ContainerKlWW3Fw/getSession_FlashBagService.php line 24

Open in your IDE?
  1. <?php
  2. namespace ContainerKlWW3Fw;
  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_FlashBagService extends App_KernelDevDebugContainer
  9. {
  10. /**
  11. * Gets the private 'session.flash_bag' shared service.
  12. *
  13. * @return \Symfony\Component\HttpFoundation\Session\Flash\FlashBag
  14. *
  15. * @deprecated Since symfony/framework-bundle 5.1: The "session.flash_bag" service is deprecated, use "$session->getFlashBag()" instead.
  16. */
  17. public static function do($container, $lazyLoad = true)
  18. {
  19. trigger_deprecation('symfony/framework-bundle', '5.1', 'The "session.flash_bag" service is deprecated, use "$session->getFlashBag()" instead.');
  20. return ($container->services['.container.private.session'] ?? $container->load('get_Container_Private_SessionService'))->getFlashBag();
  21. }
  22. }