app['firewall']; } /** * Gets client main page * * @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; } return $this->app->redirect($this->app->path('prod', array('client'))); } }