Upload files
This commit is contained in:
@ -2,15 +2,23 @@
|
||||
use Psr\Container\ContainerInterface as Container;
|
||||
|
||||
return [
|
||||
Slim\Views\Blade::class => function(Container $c) {
|
||||
return new Slim\Views\Blade(
|
||||
$c->get('folders')->templates,
|
||||
$c->get('folders')->cache,
|
||||
null,
|
||||
[
|
||||
'api_key' => $c->get('API_KEY'),
|
||||
'urls' => $c->get('urls')
|
||||
]
|
||||
);
|
||||
}
|
||||
Slim\Views\Blade::class => function(Container $c) {
|
||||
return new Slim\Views\Blade(
|
||||
$c->get('folders')->templates,
|
||||
$c->get('folders')->cache,
|
||||
null,
|
||||
[
|
||||
'api_key' => $c->get('API_KEY'),
|
||||
'urls' => $c->get('urls')
|
||||
]
|
||||
);
|
||||
},
|
||||
GuzzleHttp\Client::class => function(Container $c) {
|
||||
return new GuzzleHttp\Client([
|
||||
'base_uri' => 'http://api-proxy',
|
||||
'headers' => [
|
||||
'Authorization' => 'Bearer ' . $c->get('API_KEY')
|
||||
]
|
||||
]);
|
||||
}
|
||||
];
|
||||
|
Reference in New Issue
Block a user