Skip to content

Commit 3f0e27b

Browse files
jirinapravnikenumag
authored andcommitted
Create log directory if not exists (#4)
1 parent d83c2b1 commit 3f0e27b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Module/NetteDIModule.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ private function createContainer()
131131
}
132132

133133
if ($this->config['logDir']) {
134-
$configurator->enableDebugger($this->path.'/'.$this->config['logDir']);
134+
$logDir = $this->path.'/'.$this->config['logDir'];
135+
FileSystem::createDir($logDir);
136+
$configurator->enableDebugger($logDir);
135137
}
136138

137139
$configurator->addParameters([

0 commit comments

Comments
 (0)