Files
contabilidad/api/setup/setups/01_auth.php
2022-08-08 22:36:04 -04:00

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)
);
}
];