File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/Codeception/Lib/Connector Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -192,10 +192,11 @@ private function initialize($request = null)
192
192
193
193
$ this ->app = $ this ->kernel = $ this ->loadApplication ();
194
194
195
+ $ this ->app ->make ('Illuminate\Contracts\Http\Kernel ' )->bootstrap ();
196
+
195
197
// Set the request instance for the application,
196
198
if (is_null ($ request )) {
197
- $ appConfig = require $ this ->module ->config ['project_dir ' ] . 'config/app.php ' ;
198
- $ request = SymfonyRequest::create ($ appConfig ['url ' ]);
199
+ $ request = SymfonyRequest::create ($ this ->app ['config ' ]->get ('app.url ' ));
199
200
}
200
201
$ this ->app ->instance ('request ' , Request::createFromBase ($ request ));
201
202
@@ -208,8 +209,6 @@ private function initialize($request = null)
208
209
});
209
210
}
210
211
211
- $ this ->app ->make ('Illuminate\Contracts\Http\Kernel ' )->bootstrap ();
212
-
213
212
// Record all triggered events by adding a wildcard event listener
214
213
// Since Laravel 5.4 wildcard event handlers receive the event name as the first argument,
215
214
// but for earlier Laravel versions the firing() method of the event dispatcher should be used
You can’t perform that action at this time.
0 commit comments