Dot ENV
This commit is contained in:
@ -3,6 +3,7 @@ use DI\ContainerBuilder as Builder;
|
||||
use DI\Bridge\Slim\Bridge;
|
||||
|
||||
include_once 'composer.php';
|
||||
include_once 'dotenv.php';
|
||||
|
||||
$builder = new Builder();
|
||||
$folders = ['common'];
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
return [
|
||||
'urls.base' => '/provm/totalsport',
|
||||
'urls.base' => getenv('BASE_URL'),
|
||||
'folders.base' => dirname(__DIR__, 2),
|
||||
'folders.resources' => DI\string(implode(DIRECTORY_SEPARATOR, [
|
||||
'{folders.base}',
|
||||
|
3
bootstrap/dotenv.php
Normal file
3
bootstrap/dotenv.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
$dotenv = Dotenv\Dotenv::createImmutable(dirname(__DIR__));
|
||||
$dotenv->load();
|
Reference in New Issue
Block a user