File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ class NetteDIModule extends Module
25
25
{
26
26
protected $ config = [
27
27
'configFiles ' => [],
28
+ 'appDir ' => null ,
28
29
'logDir ' => null ,
30
+ 'wwwDir ' => null ,
29
31
'debugMode ' => null ,
30
32
'configurator ' => Configurator::class,
31
33
];
@@ -126,6 +128,11 @@ private function createContainer()
126
128
$ configurator ->enableDebugger ($ this ->path .'/ ' .$ this ->config ['logDir ' ]);
127
129
}
128
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
+
129
136
$ tempDir = $ this ->path .'/ ' .$ this ->config ['tempDir ' ];
130
137
FileSystem::delete ($ tempDir );
131
138
FileSystem::createDir ($ tempDir );
You can’t perform that action at this time.
0 commit comments