Skip to content

Commit

Permalink
[TASK] Implement code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
garvinhicking committed Mar 5, 2024
1 parent 0267e29 commit 45e5a49
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
9 changes: 3 additions & 6 deletions Documentation/Installation/Environments/_dotenv-symfony.php
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');
10 changes: 2 additions & 8 deletions Documentation/Installation/Environments/_dotenv-vlucas.php
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();
1 change: 1 addition & 0 deletions Documentation/Installation/ProductionSettings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ To ensure a secure installation of TYPO3 on a production server, the following s

.. code-block:: php
:caption: config/system/additional.php | typo3conf/system/additional.php
$GLOBALS['TYPO3_CONF_VARS']['SYS']['displayErrors'] = '0';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['sqlDebug'] = '0';
$GLOBALS['TYPO3_CONF_VARS']['FE']['debug'] = '0';
Expand Down

0 comments on commit 45e5a49

Please sign in to comment.