app['firewall']; } /** * @return Session */ private function getSession() { return $this->app['session']; } /** * /!\/!\/!\/!\/!\/!\/!\/!\/!\ * * Client is no longer used * * Redirect to production with a nice message * * @param Request $request * @return Response */ public function getClientAction(Request $request) { if (!$this->getAuthenticator()->isAuthenticated() && null !== $request->query->get('nolog')) { return $this->app->redirectPath('login_authenticate_as_guest', ['redirect' => 'client']); } if (null !== $response = $this->getFirewall()->requireAuthentication()) { return $response; } $this->getSession()->getFlashBag()->add('step_by_step', ''); return $this->app->redirect($this->app->path('prod', array('client'))); } }