Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update the settings variables on public/index.php
  • Loading branch information
AntoninoM90 committed Feb 5, 2021
1 parent bf85482 commit 7eab319
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions public/index.php
Expand Up @@ -46,14 +46,12 @@
$routes = require __DIR__ . '/../app/routes.php';
$routes($app);

/** @var bool $displayErrorDetails */
$displayErrorDetails = $container->get(SettingsInterface::class)->get('displayErrorDetails');
/** @var SettingsInterface $settings */
$settings = $container->get(SettingsInterface::class);

/** @var bool $logError */
$logError = $container->get(SettingsInterface::class)->get('logError');

/** @var bool $logErrorDetails */
$logErrorDetails = $container->get(SettingsInterface::class)->get('logErrorDetails');
$displayErrorDetails = $settings->get('displayErrorDetails');
$logError = $settings->get('logError');
$logErrorDetails = $settings->get('logErrorDetails');

// Create Request object from globals
$serverRequestCreator = ServerRequestCreatorFactory::create();
Expand Down

0 comments on commit 7eab319

Please sign in to comment.