2022-11-28 22:56:21 -03:00
|
|
|
<?php
|
|
|
|
use Psr\Container\ContainerInterface;
|
|
|
|
|
|
|
|
return [
|
|
|
|
ProVM\Common\Middleware\CustomExceptions::class => function(ContainerInterface $container) {
|
|
|
|
return new ProVM\Common\Middleware\CustomExceptions(
|
|
|
|
$container->get(Nyholm\Psr7\Factory\Psr17Factory::class),
|
|
|
|
$container->get(Psr\Log\LoggerInterface::class)
|
|
|
|
);
|
2022-12-01 14:15:54 -03:00
|
|
|
},
|
|
|
|
ProVM\Common\Middleware\Logging::class => function(ContainerInterface $container) {
|
|
|
|
return new ProVM\Common\Middleware\Logging($container->get('request_logger'));
|
2022-11-28 22:56:21 -03:00
|
|
|
}
|
2022-12-01 14:15:54 -03:00
|
|
|
];
|