Version produccion

This commit is contained in:
2023-06-16 00:53:21 +00:00
parent 4806784b68
commit 15dfefe517
38 changed files with 848 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<?php
return [
'folders.base' => dirname(__DIR__, 2),
'folders.config' => DI\string(implode(DIRECTORY_SEPARATOR, [
'{folders.base}',
'config'
])),
'folders.resources' => DI\string(implode(DIRECTORY_SEPARATOR, [
'{folders.base}',
'resources'
])),
'folders.routes' => DI\string(implode(DIRECTORY_SEPARATOR, [
'{folders.resources}',
'routes'
])),
//'urls.base' => '/optimus/money'
'urls.base' => ''
];

View File

@ -0,0 +1,14 @@
<?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');
}
];