15 lines
502 B
PHP
15 lines
502 B
PHP
<?php
|
|
use Psr\Container\ContainerInterface as Container;
|
|
|
|
return [
|
|
'config' => function(Container $c) {
|
|
return (new Aldarien\Common\Service\Config($c->get('folders.config')))->load();
|
|
},
|
|
GuzzleHttp\ClientInterface::class => function(Container $c) {
|
|
return new GuzzleHttp\Client();
|
|
},
|
|
Aldarien\Money\UF\Handler::class => function(Container $c) {
|
|
return new Aldarien\Money\UF\Handler($c->get(GuzzleHttp\ClientInterface::class), 'https://mindicador.cl/api/uf');
|
|
}
|
|
];
|