remove Redirect::unauthorize method, 401 Code is not a redirect code

This commit is contained in:
Manuel Raynaud
2013-08-07 10:32:01 +02:00
parent 9f20740dae
commit 154d8e4d48

View File

@@ -28,11 +28,6 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
class Redirect
{
public static function unauthorize($url)
{
self::exec($url, 401);
}
public static function exec($url, $status = 302)
{
$response = new RedirectResponse($url, $status);