API Base App
This commit is contained in:
12
api/setup/setups/97_auth.php
Normal file
12
api/setup/setups/97_auth.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?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')
|
||||
);
|
||||
}
|
||||
];
|
Reference in New Issue
Block a user