-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Implement code review changes
- Loading branch information
1 parent
0267e29
commit 45e5a49
Showing
3 changed files
with
6 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
<?php | ||
|
||
use Symfony\Component\Dotenv\Dotenv; | ||
use TYPO3\CMS\Core\Core\Environment; | ||
|
||
try { | ||
$dotenv = new Dotenv(); | ||
$dotenv->load(TYPO3\CMS\Core\Core\Environment::getProjectPath() . '/.env'); | ||
} catch (Exception $e) { | ||
// If no ".env" file is found, configuration can still be functional. | ||
} | ||
$dotenv = new Dotenv(); | ||
$dotenv->load(Environment::getProjectPath() . '/.env'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
<?php | ||
|
||
use Dotenv\Dotenv; | ||
use Dotenv\Exception\InvalidPathException; | ||
use TYPO3\CMS\Core\Core\Environment; | ||
|
||
defined('TYPO3') or die(); | ||
|
||
// If no ".env" file is found, configuration can still be functional. | ||
try { | ||
$dotenv = Dotenv::createUnsafeImmutable(Environment::getProjectPath()); | ||
$dotenv->load(); | ||
} catch (InvalidPathException $e) { | ||
// If no ".env" file is found, configuration can still be functional. | ||
} | ||
$dotenv = Dotenv::createUnsafeImmutable(Environment::getProjectPath()); | ||
$dotenv->load(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters