This commit is contained in:
2020-04-29 23:47:01 -04:00
parent 2a34fa368e
commit 10343cbc88
4 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,7 @@ use DI\ContainerBuilder as Builder;
use DI\Bridge\Slim\Bridge; use DI\Bridge\Slim\Bridge;
include_once 'composer.php'; include_once 'composer.php';
include_once 'dotenv.php';
$builder = new Builder(); $builder = new Builder();
$folders = ['common']; $folders = ['common'];

View File

@ -1,6 +1,6 @@
<?php <?php
return [ return [
'urls.base' => '/provm/totalsport', 'urls.base' => getenv('BASE_URL'),
'folders.base' => dirname(__DIR__, 2), 'folders.base' => dirname(__DIR__, 2),
'folders.resources' => DI\string(implode(DIRECTORY_SEPARATOR, [ 'folders.resources' => DI\string(implode(DIRECTORY_SEPARATOR, [
'{folders.base}', '{folders.base}',

3
bootstrap/dotenv.php Normal file
View File

@ -0,0 +1,3 @@
<?php
$dotenv = Dotenv\Dotenv::createImmutable(dirname(__DIR__));
$dotenv->load();

View File

@ -16,7 +16,8 @@
"nyholm/psr7-server": "^0.4.1", "nyholm/psr7-server": "^0.4.1",
"rubellum/slim-blade-view": "^0.1.1", "rubellum/slim-blade-view": "^0.1.1",
"mustangostang/spyc": "^0.6.3", "mustangostang/spyc": "^0.6.3",
"voku/stringy": "^6.2" "voku/stringy": "^6.2",
"vlucas/phpdotenv": "^4.1"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^8.5", "phpunit/phpunit": "^8.5",