Authenticacion
This commit is contained in:
@ -8,8 +8,8 @@ $container_builder = new DI\ContainerBuilder();
|
||||
$folders = [
|
||||
'common'
|
||||
];
|
||||
if (isset($_ENV)) {
|
||||
$folders []= $_ENV;
|
||||
if (isset($__environment)) {
|
||||
$folders []= $__environment;
|
||||
}
|
||||
|
||||
$file = 'config.php';
|
||||
@ -42,4 +42,7 @@ foreach ($folders as $folder) {
|
||||
}
|
||||
}
|
||||
|
||||
$dotenv = Dotenv\Dotenv::createImmutable($container->get('folders.base'));
|
||||
$dotenv->load();
|
||||
|
||||
include_once implode(DIRECTORY_SEPARATOR, [$app->getContainer()->get('folders.routes'), 'router.php']);
|
||||
|
Reference in New Issue
Block a user