<?php
namespace Blackbit\SingleSignOnBundle\Helper;
use Pimcore\Session\SessionConfiguratorInterface;
use Symfony\Component\HttpFoundation\Session\Attribute\NamespacedAttributeBag;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
class SessionConfig implements SessionConfiguratorInterface
{
public const SESSION_BAG_NAME = 'sso_auth';
public function configure(SessionInterface $session)
{
$bag = new NamespacedAttributeBag('_sso_auth');
$bag->setName(self::SESSION_BAG_NAME);
$session->registerBag($bag);
}
}