remove Redirect::unauthorize method, 401 Code is not a redirect code
This commit is contained in:
@@ -28,11 +28,6 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
|
|||||||
class Redirect
|
class Redirect
|
||||||
{
|
{
|
||||||
|
|
||||||
public static function unauthorize($url)
|
|
||||||
{
|
|
||||||
self::exec($url, 401);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function exec($url, $status = 302)
|
public static function exec($url, $status = 302)
|
||||||
{
|
{
|
||||||
$response = new RedirectResponse($url, $status);
|
$response = new RedirectResponse($url, $status);
|
||||||
|
|||||||
Reference in New Issue
Block a user