feature/cierres #30

Merged
aldarien merged 460 commits from feature/cierres into develop 2025-09-11 15:16:17 -03:00
188 changed files with 675 additions and 6648 deletions
Showing only changes of commit 8796762cfe - Show all commits

View File

@ -18,7 +18,11 @@ class NotAllowed
{
try {
return $handler->handle($request);
} catch (HttpMethodNotAllowedException) {
} catch (HttpMethodNotAllowedException $exception) {
$this->logger->warning($exception, [
'Server' => $request->getServerParams(),
'Headers' => $request->getHeaders(),
]);
$response = $this->responseFactory->createResponse(405, 'Method Not Allowed');
if (str_contains($request->getUri()->getPath(), '/api')) {
return $response;

View File

@ -21,7 +21,10 @@ class NotFound
return $handler->handle($request);
} catch (HttpNotFoundException |
EmptyRedis | EmptyResult | Read | Create | Update | Delete $exception) {
$this->logger->notice($exception);
$this->logger->notice($exception, [
'Server' => $request->getServerParams(),
'Headers' => $request->getHeaders(),
]);
$response = $this->responseFactory->createResponse(404, 'Not Found');
if (str_contains($request->getUri()->getPath(), '/api')) {
return $response;