Authenticacion

This commit is contained in:
2020-04-07 15:37:21 -04:00
parent 2ae6826ff4
commit bca4665721
27 changed files with 378 additions and 34 deletions

View File

@ -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']);