UI Base App

This commit is contained in:
2022-11-09 15:22:58 -03:00
parent b3115be4f2
commit 557d218bcc
12 changed files with 149 additions and 0 deletions

View File

@ -0,0 +1,4 @@
<?php
return [
'api_key' => $_ENV['API_KEY']
];

View File

@ -0,0 +1,25 @@
<?php
use Psr\Container\ContainerInterface;
return [
'folders' => function() {
$arr = ['base' => dirname(__FILE__, 3)];
$arr['resources'] = implode(DIRECTORY_SEPARATOR, [
$arr['base'],
'resources'
]);
$arr['routes'] = implode(DIRECTORY_SEPARATOR, [
$arr['resources'],
'routes'
]);
$arr['views'] = implode(DIRECTORY_SEPARATOR, [
$arr['resources'],
'views'
]);
$arr['cache'] = implode(DIRECTORY_SEPARATOR, [
$arr['base'],
'cache'
]);
return (object) $arr;
}
];

View File

@ -0,0 +1,8 @@
<?php
return [
'urls' => function() {
$arr = ['base' => '/'];
$arr['api'] = 'http://localhost:8080';
return (object) $arr;
}
];

View File

@ -0,0 +1,4 @@
<?php
return [
'log_file' => '/logs/php.log'
];