vendor/blackbit/single-sign-on/Helper/SessionConfig.php line 13

Open in your IDE?
  1. <?php
  2. namespace Blackbit\SingleSignOnBundle\Helper;
  3. use Pimcore\Session\SessionConfiguratorInterface;
  4. use Symfony\Component\HttpFoundation\Session\Attribute\NamespacedAttributeBag;
  5. use Symfony\Component\HttpFoundation\Session\SessionInterface;
  6. class SessionConfig implements SessionConfiguratorInterface
  7. {
  8.     public const SESSION_BAG_NAME 'sso_auth';
  9.     public function configure(SessionInterface $session)
  10.     {
  11.         $bag = new NamespacedAttributeBag('_sso_auth');
  12.         $bag->setName(self::SESSION_BAG_NAME);
  13.         $session->registerBag($bag);
  14.     }
  15. }