File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 16
16
"codeception/codeception" : " ^2.2.0" ,
17
17
"nette/bootstrap" : " ^2.3.0" ,
18
18
"nette/di" : " ^2.3.0" ,
19
- "nette/http" : " ^2.3.0"
19
+ "nette/http" : " ^2.3.0" ,
20
+ "nette/utils" : " ^2.3.0"
20
21
},
21
22
"require-dev" : {
22
23
"enumag/application" : " ^0.3.16" ,
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ class MyServiceTest extends Unit
45
45
}
46
46
}
47
47
```
48
+ ` useConfigFiles ` method takes array of file paths that are either absolute or relative to suite root.
48
49
49
50
NetteApplicationModule
50
51
----
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ private function createContainer()
157
157
158
158
$ configFiles = is_array ($ this ->configFiles ) ? $ this ->configFiles : $ this ->config ['configFiles ' ];
159
159
foreach ($ configFiles as $ file ) {
160
- $ configurator ->addConfig ($ this ->path .'/ ' .$ file );
160
+ $ configurator ->addConfig (FileSystem:: isAbsolute ( $ file ) ? $ file : $ this ->path .'/ ' .$ file );
161
161
}
162
162
163
163
$ this ->container = $ configurator ->createContainer ();
You can’t perform that action at this time.
0 commit comments