/** * Create a new symfony session object * This method MUST NOT start the session * * @return \Symfony\Component\HttpFoundation\Session\Session */ public function createSession() { $config = $this->app['config']; $storage = $this->getSessionStorage($config); $session = new SymfonySession($storage); $session->setName($config->get('concrete.session.name')); /** * @todo Move this to somewhere else */ $this->request->setSession($session); return $session; }
/** * Sets the Session. * * @param SessionInterface $session The Session * * @api */ public function setSession(Symfony\Component\HttpFoundation\Session\SessionInterface $session) { return parent::setSession($session); }