Access Logs

This commit is contained in:
Juan Pablo Vial
2025-05-19 13:14:13 -04:00
parent b7c5e4ebc3
commit 312baa34f6
3 changed files with 33 additions and 5 deletions

View File

@ -22,5 +22,19 @@ return [
$container->get('simplePaths'),
$container->get('externalPaths'),
);
},
Incoviba\Middleware\NotFound::class => function(ContainerInterface $container) {
return new Incoviba\Middleware\NotFound(
$container->get('accessLogger'),
$container->get(Psr\Http\Message\ResponseFactoryInterface::class),
$container->get(Incoviba\Common\Alias\View::class)
);
},
Incoviba\Middleware\NotAllowed::class => function(ContainerInterface $container) {
return new Incoviba\Middleware\NotAllowed(
$container->get('accessLogger'),
$container->get(Psr\Http\Message\ResponseFactoryInterface::class),
$container->get(Incoviba\Common\Alias\View::class)
);
}
];