13 lines
382 B
PHP
13 lines
382 B
PHP
<?php
|
|
use Psr\Container\ContainerInterface;
|
|
|
|
return [
|
|
\ProVM\Common\Middleware\Auth::class => function(ContainerInterface $container) {
|
|
return new \ProVM\Common\Middleware\Auth(
|
|
$container->get(\Nyholm\Psr7\Factory\Psr17Factory::class),
|
|
$container->get(\Psr\Log\LoggerInterface::class),
|
|
$container->get('api_key')
|
|
);
|
|
}
|
|
];
|