Skip to content

Commit 3ab5d32

Browse files
committed
Add appDir and wwwDir parameters to NetteDIModule
1 parent 0a341f4 commit 3ab5d32

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Module/NetteDIModule.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ class NetteDIModule extends Module
2525
{
2626
protected $config = [
2727
'configFiles' => [],
28+
'appDir' => null,
2829
'logDir' => null,
30+
'wwwDir' => null,
2931
'debugMode' => null,
3032
'configurator' => Configurator::class,
3133
];
@@ -126,6 +128,11 @@ private function createContainer()
126128
$configurator->enableDebugger($this->path.'/'.$this->config['logDir']);
127129
}
128130

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+
129136
$tempDir = $this->path.'/'.$this->config['tempDir'];
130137
FileSystem::delete($tempDir);
131138
FileSystem::createDir($tempDir);

0 commit comments

Comments
 (0)