Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1598599

Browse files
author
Julien Neuhart
committed
fixes#13
1 parent2c4b068 commit1598599

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-
useSymfony\Component\Dotenv\Dotenv;
3+
#use Symfony\Component\Dotenv\Dotenv;
44

55
requiredirname(__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)

[8]ページ先頭

©2009-2025 Movatter.jp