File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -89,18 +89,20 @@ private function setupTracyPanel()
89
89
90
90
private function setupWebLoader ()
91
91
{
92
+ $ arguments = [$ this ->config ['outputDir ' ]];
93
+
94
+ if ($ this ->config ['documentRoot ' ]) {
95
+ $ arguments [] = $ this ->config ['documentRoot ' ];
96
+ }
97
+
92
98
$ webLoader = $ this ->builder ->addDefinition ($ this ->prefix (self ::ENGINE_PREFIX ))
93
99
->setFactory (self ::ENGINE_CLASSNAME )
94
- ->setArguments ([ $ this -> config [ ' outputDir ' ]] );
100
+ ->setArguments ($ arguments );
95
101
96
102
if ($ this ->config ['disableCache ' ]) {
97
103
$ webLoader ->addSetup ('disableCache ' );
98
104
}
99
105
100
- if ($ this ->config ['documentRoot ' ]) {
101
- $ webLoader ->addSetup ('setDocumentRoot ' , [$ this ->config ['documentRoot ' ]]);
102
- }
103
-
104
106
if ($ this ->config ['filesCollections ' ]) {
105
107
$ webLoader ->addSetup ('createFilesCollectionsFromArray ' , [$ this ->config ['filesCollections ' ]]);
106
108
}
You can’t perform that action at this time.
0 commit comments