15 lines
544 B
PHP
15 lines
544 B
PHP
<?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)
|
|
);
|
|
},
|
|
ProVM\Common\Middleware\Logging::class => function(ContainerInterface $container) {
|
|
return new ProVM\Common\Middleware\Logging($container->get('request_logger'));
|
|
}
|
|
];
|