Skip to content

Commit 20cc8b1

Browse files
janfejtekf3l1x
authored andcommitted
Reorder debugMode and enableTracy
1 parent 5d2be1b commit 20cc8b1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Module/NetteDIModule.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ private function createContainer(): void
124124
'extensions' => ExtensionsExtension::class,
125125
];
126126
}
127-
127+
128+
if ($this->config['debugMode'] !== null) {
129+
$configurator->setDebugMode((bool) $this->config['debugMode']);
130+
}
131+
128132
if ($this->config['logDir'] !== null) {
129133
$logDir = $this->path . '/' . $this->config['logDir'];
130134
FileSystem::createDir($logDir);
@@ -140,9 +144,7 @@ private function createContainer(): void
140144
$tempDir = $this->getTempDir();
141145
$configurator->setTempDirectory($tempDir);
142146

143-
if ($this->config['debugMode'] !== null) {
144-
$configurator->setDebugMode((bool) $this->config['debugMode']);
145-
}
147+
146148

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

0 commit comments

Comments
 (0)