File tree 3 files changed +4
-2
lines changed 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 16
16
"codeception/codeception" : " ^2.3.2" ,
17
17
"nette/bootstrap" : " ^2.4.0" ,
18
18
"nette/di" : " ^2.4.10" ,
19
- "nette/http" : " ^2.4.0"
19
+ "nette/http" : " ^2.4.0" ,
20
+ "nette/utils" : " ^2.4.0"
20
21
},
21
22
"require-dev" : {
22
23
"friendsofphp/php-cs-fixer" : " ^2.8.0" ,
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ class MyServiceTest extends Unit
48
48
}
49
49
}
50
50
```
51
+ ` useConfigFiles ` method takes array of file paths that are either absolute or relative to suite root.
51
52
52
53
NetteApplicationModule
53
54
----
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ private function createContainer(): void
147
147
148
148
$ configFiles = is_array ($ this ->configFiles ) ? $ this ->configFiles : $ this ->config ['configFiles ' ];
149
149
foreach ($ configFiles as $ file ) {
150
- $ configurator ->addConfig ($ this ->path .'/ ' .$ file );
150
+ $ configurator ->addConfig (FileSystem:: isAbsolute ( $ file ) ? $ file : $ this ->path .'/ ' .$ file );
151
151
}
152
152
153
153
$ this ->container = $ configurator ->createContainer ();
You can’t perform that action at this time.
0 commit comments