16 lines
488 B
PHP
16 lines
488 B
PHP
<?php
|
|
use Psr\Container\ContainerInterface as Container;
|
|
|
|
return [
|
|
Incoviba\API\Common\Service\Auth::class => function(Container $c) {
|
|
return new Incoviba\API\Common\Service\Auth($c->get('API_KEY'));
|
|
},
|
|
Incoviba\API\Common\Middleware\Auth::class => function(Container $c) {
|
|
return new Incoviba\API\Common\Middleware\Auth(
|
|
$c->get(Incoviba\API\Common\Service\Auth::class),
|
|
$c->get(Slim\Psr7\Factory\ResponseFactory::class),
|
|
['/auth/generate']
|
|
);
|
|
}
|
|
];
|