public function testSession(SessionEvent $event)
 {
     if ($event->getEnv() == 'test') {
         $storage = new MockFileSessionStorage($event->getCacheDir() . DS . 'sessions');
         $event->setSession($this->getSession($storage));
         $event->stopPropagation();
     }
 }
Beispiel #2
0
 public function testSession(SessionEvent $event)
 {
     if ($event->getEnv() == 'test') {
         $storage = new MockFileSessionStorage($event->getContainer()->getParameter('kernel.cache_dir') . DS . 'sessions');
         $event->setSession($this->getSession($storage));
         $event->stopPropagation();
     }
 }