8000 fixes #13 · thecodingmachine/symfony-vuejs@1598599 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1598599

Browse files
author
Julien Neuhart
committed
fixes #13
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 8000 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)
0