public function getSession() { if ($request = $this->getRequest()) { return $request->getSession(); } }