Files
contabilidad/ui/setup/setups/03_web.php

25 lines
667 B
PHP
Raw Normal View History

2021-07-29 22:05:48 -04:00
<?php
use Psr\Container\ContainerInterface as Container;
return [
2021-12-22 01:38:34 -03:00
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')
]
]);
}
2021-07-29 22:05:48 -04:00
];