summaryrefslogtreecommitdiffstats
path: root/Http/EntryPoint/FormAuthenticationEntryPoint.php
diff options
context:
space:
mode:
Diffstat (limited to 'Http/EntryPoint/FormAuthenticationEntryPoint.php')
-rw-r--r--Http/EntryPoint/FormAuthenticationEntryPoint.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/Http/EntryPoint/FormAuthenticationEntryPoint.php b/Http/EntryPoint/FormAuthenticationEntryPoint.php
index 0993fa7..5809fe8 100644
--- a/Http/EntryPoint/FormAuthenticationEntryPoint.php
+++ b/Http/EntryPoint/FormAuthenticationEntryPoint.php
@@ -49,9 +49,6 @@ class FormAuthenticationEntryPoint implements AuthenticationEntryPointInterface
return $event->getSubject()->handle(Request::create($this->loginPath), HttpKernelInterface::SUB_REQUEST);
}
- $response = new Response();
- $response->setRedirect(0 !== strpos($this->loginPath, 'http') ? $request->getUriForPath($this->loginPath) : $this->loginPath, 302);
-
- return $response;
+ return Response::createRedirect(0 !== strpos($this->loginPath, 'http') ? $request->getUriForPath($this->loginPath) : $this->loginPath, 302);
}
}