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
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 );
You can’t perform that action at this time.
0 commit comments