Skip to content

Commit 1598599

Browse files
author
Julien Neuhart
committed
1 parent 2c4b068 commit 1598599

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/config/bootstrap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<?php
22

3-
use Symfony\Component\Dotenv\Dotenv;
3+
#use Symfony\Component\Dotenv\Dotenv;
44

55
require dirname(__DIR__).'/vendor/autoload.php';
66

77
if (!array_key_exists('APP_ENV', $_SERVER)) {
88
$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] ?? null;
99
}
1010

11-
if ('prod' !== $_SERVER['APP_ENV']) {
11+
/*if ('prod' !== $_SERVER['APP_ENV']) {
1212
if (!class_exists(Dotenv::class)) {
1313
throw new RuntimeException('The "APP_ENV" environment variable is not set to "prod". Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.');
1414
}
1515
1616
(new Dotenv())->loadEnv(dirname(__DIR__).'/.env');
17-
}
17+
}*/
1818

1919
$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $_SERVER['APP_ENV'] ?: $_ENV['APP_ENV'] ?: 'dev';
2020
$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV'];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy