Skip to content

Commit

Permalink
define __ROOT__ elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
killua-eu committed Jun 4, 2024
1 parent 550fea8 commit e50c7ed
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Includes/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@
use Slim\Factory\AppFactory;
use Slim\Http\Factory\DecoratedResponseFactory;

define("__ROOT__", realpath(__DIR__ . '/..'));
require_once(__ROOT__ . '/vendor/autoload.php');

// Load .env file, don't override existing $_ENV values
// If GLUED_PROD = 1, rely purely on $_ENV and don't load
// the .env file (which is intended only for development)
// to improve performance.
// Load .env file, don't override existing $_ENV values. If GLUED_PROD = 1, rely purely on $_ENV and don't load
// the .env file (which is intended only for development) to improve performance.
if (!isset($_ENV['GLUED_PROD'])) {
$dotenv = Dotenv\Dotenv::createImmutable(__ROOT__);
$dotenv->safeLoad();
Expand Down

0 comments on commit e50c7ed

Please sign in to comment.