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