This commit is contained in:
2021-12-25 23:17:15 -03:00
parent bbee033a8a
commit 3580738273
23 changed files with 755 additions and 81 deletions

View File

@ -1,5 +1,5 @@
<?php
return [
'debug' => $_ENV['DEBUG'] ?? false,
'AUTH_KEY' => $_ENV['API_KEY']
'API_KEY' => $_ENV['API_KEY']
];

View File

@ -3,7 +3,7 @@ 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('AUTH_KEY'));
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(