We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a341f4 commit 3ab5d32Copy full SHA for 3ab5d32
src/Module/NetteDIModule.php
@@ -25,7 +25,9 @@ class NetteDIModule extends Module
25
{
26
protected $config = [
27
'configFiles' => [],
28
+ 'appDir' => null,
29
'logDir' => null,
30
+ 'wwwDir' => null,
31
'debugMode' => null,
32
'configurator' => Configurator::class,
33
];
@@ -126,6 +128,11 @@ private function createContainer()
126
128
$configurator->enableDebugger($this->path.'/'.$this->config['logDir']);
127
129
}
130
131
+ $configurator->addParameters([
132
+ 'appDir' => $this->path.($this->config['appDir'] ? '/'.$this->config['appDir'] : ''),
133
+ 'wwwDir' => $this->path.($this->config['wwwDir'] ? '/'.$this->config['wwwDir'] : ''),
134
+ ]);
135
+
136
$tempDir = $this->path.'/'.$this->config['tempDir'];
137
FileSystem::delete($tempDir);
138
FileSystem::createDir($tempDir);
0 commit comments