Skip to content

Commit

Permalink
Reorder debugMode and enableTracy
Browse files Browse the repository at this point in the history
  • Loading branch information
janfejtek authored and f3l1x committed Aug 15, 2024
1 parent 5d2be1b commit 20cc8b1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Module/NetteDIModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ private function createContainer(): void
'extensions' => ExtensionsExtension::class,
];
}


if ($this->config['debugMode'] !== null) {
$configurator->setDebugMode((bool) $this->config['debugMode']);
}

if ($this->config['logDir'] !== null) {
$logDir = $this->path . '/' . $this->config['logDir'];
FileSystem::createDir($logDir);
Expand All @@ -140,9 +144,7 @@ private function createContainer(): void
$tempDir = $this->getTempDir();
$configurator->setTempDirectory($tempDir);

if ($this->config['debugMode'] !== null) {
$configurator->setDebugMode((bool) $this->config['debugMode']);
}


/** @var iterable<string> $configFiles */
$configFiles = $this->configFiles !== [] ? $this->configFiles : $this->config['configFiles'];
Expand Down

0 comments on commit 20cc8b1

Please sign in to comment.