public function testSession(SessionEvent $event) { if ($event->getEnv() == 'test') { $storage = new MockFileSessionStorage($event->getCacheDir() . DS . 'sessions'); $event->setSession($this->getSession($storage)); $event->stopPropagation(); } }
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(); } }