This commit is contained in:
2021-11-30 18:04:41 -03:00
parent 87323b22d8
commit f589ff960b
56 changed files with 1960 additions and 0 deletions

View File

@ -0,0 +1,5 @@
<?php
return [
'debug' => $_ENV['DEBUG'] ?? false,
'AUTH_KEY' => $_ENV['API_KEY']
];

View File

@ -0,0 +1,24 @@
<?php
return [
'database' => function() {
$arr = [
'default' => (object) [
'engine' => 'mysql',
'host' => (object) [
'name' => $_ENV['MYSQL_HOST'] ?? 'db'
],
'user' => (object) [
'name' => $_ENV['MYSQL_USER'],
'password' => $_ENV['MYSQL_PASSWORD']
],
'name' => $_ENV['MYSQL_DATABASE'],
'logging' => true,
'caching' => true
]
];
return (object) [
'short_names' => true,
'databases' => $arr
];
}
];

View File

@ -0,0 +1,15 @@
<?php
return [
'folders' => function() {
$arr = ['base' => dirname(__FILE__, 3)];
$arr['resources'] = implode(DIRECTORY_SEPARATOR, [
$arr['base'],
'resources'
]);
$arr['routes'] = implode(DIRECTORY_SEPARATOR, [
$arr['resources'],
'routes'
]);
return (object) $arr;
}
];