Limpieza de objetos externos
This commit is contained in:
14
api/setup/setups/01_auth.php
Normal file
14
api/setup/setups/01_auth.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?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)
|
||||
);
|
||||
}
|
||||
];
|
Reference in New Issue
Block a user