Skip to content

Commit 4df5f3b

Browse files
committed
Cleanup
1 parent 0558d4e commit 4df5f3b

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/Tqdev/PhpCrudApi/Controller/Responder.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,4 @@ public function success($result): Response
2020
return new Response(Response::OK, $result);
2121
}
2222

23-
public function redirect(String $url): Response
24-
{
25-
$response = new Response(Response::FOUND, '');
26-
$response->addHeader('Location', $url);
27-
return $response;
28-
}
29-
30-
public function html(String $url): Response
31-
{
32-
$response = new Response(Response::FOUND, '');
33-
$response->addHeader('Location', $url);
34-
return $response;
35-
}
36-
3723
}

src/Tqdev/PhpCrudApi/Response.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
class Response
55
{
66
const OK = 200;
7-
const MOVED_PERMANENTLY = 301;
8-
const FOUND = 302;
97
const UNAUTHORIZED = 401;
108
const FORBIDDEN = 403;
119
const NOT_FOUND = 404;

0 commit comments

Comments
 (0)