Files
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
return [
|
||||
'debug' => $_ENV['DEBUG'] ?? false,
|
||||
'AUTH_KEY' => $_ENV['API_KEY']
|
||||
'API_KEY' => $_ENV['API_KEY']
|
||||
];
|
||||
|
@ -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(
|
||||
|
Reference in New Issue
Block a user