diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2011-02-21 18:08:40 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2011-02-21 18:10:53 +0100 |
commit | b8c2dcece996ff89572ad8a9ece4f7faf481bb40 (patch) | |
tree | c9ce30e7b2c2a5f985c19193f4527456a50883fd /Http/EntryPoint/RetryAuthenticationEntryPoint.php | |
parent | f9bd8d8dfb915e667a1c7315727d985748d695c6 (diff) | |
download | symfony-security-b8c2dcece996ff89572ad8a9ece4f7faf481bb40.zip symfony-security-b8c2dcece996ff89572ad8a9ece4f7faf481bb40.tar.gz symfony-security-b8c2dcece996ff89572ad8a9ece4f7faf481bb40.tar.bz2 |
replaced Response::createRedirect by a new RedirectResponse class
Diffstat (limited to 'Http/EntryPoint/RetryAuthenticationEntryPoint.php')
-rw-r--r-- | Http/EntryPoint/RetryAuthenticationEntryPoint.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Http/EntryPoint/RetryAuthenticationEntryPoint.php b/Http/EntryPoint/RetryAuthenticationEntryPoint.php index 444535a..cde65aa 100644 --- a/Http/EntryPoint/RetryAuthenticationEntryPoint.php +++ b/Http/EntryPoint/RetryAuthenticationEntryPoint.php @@ -15,6 +15,7 @@ use Symfony\Component\EventDispatcher\EventInterface; use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; /** @@ -53,6 +54,6 @@ class RetryAuthenticationEntryPoint implements AuthenticationEntryPointInterface $url = $scheme.'://'.$request->getHost().$port.$request->getScriptName().$request->getPathInfo().$qs; - return Response::createRedirect($url, 301); + return new RedirectResponse($url, 301); } } |