Home
last modified time | relevance | path

Searched refs:StatusCodeInterface (Results 1 – 25 of 157) sorted by relevance

1234567

/webtrees/tests/app/Http/RequestHandlers/
H A DUpgradeWizardStepTest.php24 use Fig\Http\Message\StatusCodeInterface; alias
55 self::assertSame(StatusCodeInterface::STATUS_NO_CONTENT, $response->getStatusCode());
71 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
117 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
131 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
152 … self::assertSame(StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR, $response->getStatusCode());
171 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
176 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
208 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
224 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
H A DPingTest.php22 use Fig\Http\Message\StatusCodeInterface; alias
41 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
55 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
68 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
H A DManageMediaDataTest.php23 use Fig\Http\Message\StatusCodeInterface; alias
57 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
79 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
101 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
H A DPasswordRequestPageTest.php22 use Fig\Http\Message\StatusCodeInterface; alias
38 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
48 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
H A DSelectLanguageTest.php22 use Fig\Http\Message\StatusCodeInterface; alias
42 self::assertSame(StatusCodeInterface::STATUS_NO_CONTENT, $response->getStatusCode());
55 self::assertSame(StatusCodeInterface::STATUS_NO_CONTENT, $response->getStatusCode());
H A DLoginPageTest.php22 use Fig\Http\Message\StatusCodeInterface; alias
42 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
54 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
H A DSelectThemeTest.php22 use Fig\Http\Message\StatusCodeInterface; alias
43 self::assertSame(StatusCodeInterface::STATUS_NO_CONTENT, $response->getStatusCode());
58 self::assertSame(StatusCodeInterface::STATUS_NO_CONTENT, $response->getStatusCode());
H A DSiteLogsDataTest.php23 use Fig\Http\Message\StatusCodeInterface; alias
47 $response->method('getStatusCode')->willReturn(StatusCodeInterface::STATUS_OK);
55 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
H A DPasswordResetPageTest.php22 use Fig\Http\Message\StatusCodeInterface; alias
50 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
67 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
/webtrees/app/Http/Middleware/
H A DHandleExceptions.php23 use Fig\Http\Message\StatusCodeInterface; alias
55 class HandleExceptions implements MiddlewareInterface, StatusCodeInterface
142 … return response(nl2br((string) $exception), StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR);
167 $status_code = StatusCodeInterface::STATUS_OK;
198 ], StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR);
230 $status_code = StatusCodeInterface::STATUS_OK;
232 $status_code = StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR;
245 ], StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR);
253 ], StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR);
H A DRouter.php26 use Fig\Http\Message\StatusCodeInterface; alias
88 ->redirectUrl($uri, StatusCodeInterface::STATUS_PERMANENT_REDIRECT)
109 … return Registry::responseFactory()->response('', StatusCodeInterface::STATUS_METHOD_NOT_ALLOWED, [
115 …return Registry::responseFactory()->response('Negotiation failed', StatusCodeInterface::STATUS_NOT…
H A DCheckForMaintenanceMode.php22 use Fig\Http\Message\StatusCodeInterface; alias
32 class CheckForMaintenanceMode implements MiddlewareInterface, StatusCodeInterface
48 return response($html, StatusCodeInterface::STATUS_SERVICE_UNAVAILABLE);
/webtrees/app/Factories/
H A DResponseFactory.php22 use Fig\Http\Message\StatusCodeInterface; alias
72 int $status = StatusCodeInterface::STATUS_FOUND
87 …public function redirectUrl(UriInterface|string $url, int $code = StatusCodeInterface::STATUS_FOUN…
101 …public function response(string|array|object $content = '', int $code = StatusCodeInterface::STATU…
103 if ($content === '' && $code === StatusCodeInterface::STATUS_OK) {
104 $code = StatusCodeInterface::STATUS_NO_CONTENT;
140 int $status = StatusCodeInterface::STATUS_OK,
H A DImageFactory.php22 use Fig\Http\Message\StatusCodeInterface; alias
95 … return $this->replacementImageResponse(text: (string) StatusCodeInterface::STATUS_NOT_FOUND)
120 ->replacementImageResponse(text: (string) StatusCodeInterface::STATUS_NOT_FOUND)
128 … ->replacementImageResponse(text: (string) StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR)
159 … return $this->replacementImageResponse(text: (string) StatusCodeInterface::STATUS_NOT_FOUND)
162 …return $this->replacementImageResponse(text: (string) StatusCodeInterface::STATUS_INTERNAL_SERVER_…
221 ->replacementImageResponse(text: (string) StatusCodeInterface::STATUS_NOT_FOUND)
225 … ->replacementImageResponse(text: (string) StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR)
275 return response(content: $svg, code: StatusCodeInterface::STATUS_OK, headers: [
/webtrees/app/Contracts/
H A DResponseFactoryInterface.php22 use Fig\Http\Message\StatusCodeInterface; alias
45 int $status = StatusCodeInterface::STATUS_FOUND
56 …public function redirectUrl(UriInterface|string $url, int $code = StatusCodeInterface::STATUS_FOUN…
65 …public function response(string|array|object $content = '', int $code = StatusCodeInterface::STATU…
80 int $status = StatusCodeInterface::STATUS_OK,
/webtrees/app/Http/RequestHandlers/
H A DMediaFileThumbnail.php22 use Fig\Http\Message\StatusCodeInterface; alias
54 …return Registry::imageFactory()->replacementImageResponse((string) StatusCodeInterface::STATUS_NOT…
58 …return Registry::imageFactory()->replacementImageResponse((string) StatusCodeInterface::STATUS_FOR…
72 …return Registry::imageFactory()->replacementImageResponse((string) StatusCodeInterface::STATUS_FOR…
90 …return Registry::imageFactory()->replacementImageResponse((string) StatusCodeInterface::STATUS_NOT…
H A DEditMediaFileModal.php22 use Fig\Http\Message\StatusCodeInterface; alias
72 ]), StatusCodeInterface::STATUS_FORBIDDEN);
90 return response('', StatusCodeInterface::STATUS_NOT_FOUND);
H A DRedirectModulePhp.php22 use Fig\Http\Message\StatusCodeInterface; alias
68 …return Registry::responseFactory()->redirectUrl($url, StatusCodeInterface::STATUS_MOVED_PERMANENTL…
80 ->redirectUrl($url, StatusCodeInterface::STATUS_MOVED_PERMANENTLY)
/webtrees/app/Helpers/
H A Dfunctions.php20 use Fig\Http\Message\StatusCodeInterface; alias
80 function redirect(string $url, int $code = StatusCodeInterface::STATUS_FOUND): ResponseInterface
98 function response(array|object|string $content = '', int $code = StatusCodeInterface::STATUS_OK, ar…
/webtrees/tests/app/Http/Middleware/
H A DAuthAdministratorTest.php22 use Fig\Http\Message\StatusCodeInterface; alias
48 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
78 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
H A DAuthModeratorTest.php22 use Fig\Http\Message\StatusCodeInterface; alias
52 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
87 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
H A DAuthMemberTest.php22 use Fig\Http\Message\StatusCodeInterface; alias
52 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
87 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
H A DAuthEditorTest.php22 use Fig\Http\Message\StatusCodeInterface; alias
52 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
87 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
H A DAuthManagerTest.php22 use Fig\Http\Message\StatusCodeInterface; alias
52 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
87 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
/webtrees/app/Module/
H A DModuleCustomTrait.php22 use Fig\Http\Message\StatusCodeInterface; alias
105 if ($response->getStatusCode() === StatusCodeInterface::STATUS_OK) {
195 return response($content, StatusCodeInterface::STATUS_OK, [

1234567