We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0558d4e commit 4df5f3bCopy full SHA for 4df5f3b
src/Tqdev/PhpCrudApi/Controller/Responder.php
@@ -20,18 +20,4 @@ public function success($result): Response
20
return new Response(Response::OK, $result);
21
}
22
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
33
34
35
36
37
src/Tqdev/PhpCrudApi/Response.php
@@ -4,8 +4,6 @@
4
class Response
5
{
6
const OK = 200;
7
- const MOVED_PERMANENTLY = 301;
8
- const FOUND = 302;
9
const UNAUTHORIZED = 401;
10
const FORBIDDEN = 403;
11
const NOT_FOUND = 404;
0 commit comments