vendor/dachcom-digital/formbuilder/src/FormBuilderBundle/Session/SessionConfigurator.php line 14

Open in your IDE?
  1. <?php
  2. namespace FormBuilderBundle\Session;
  3. use Pimcore\Session\SessionConfiguratorInterface;
  4. use Symfony\Component\HttpFoundation\Session\Attribute\NamespacedAttributeBag;
  5. use Symfony\Component\HttpFoundation\Session\SessionInterface;
  6. class SessionConfigurator implements SessionConfiguratorInterface
  7. {
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  11.     public function configure(SessionInterface $session)
  12.     {
  13.         $bag = new NamespacedAttributeBag('_form_builder_session');
  14.         $bag->setName('form_builder_session');
  15.         $session->registerBag($bag);
  16.     }
  17. }