Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/Codeception/Lib/Connector/Laravel5.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,11 @@ private function initialize($request = null)

$this->app = $this->kernel = $this->loadApplication();

$this->app->make('Illuminate\Contracts\Http\Kernel')->bootstrap();

// Set the request instance for the application,
if (is_null($request)) {
$appConfig = require $this->module->config['project_dir'] . 'config/app.php';
$request = SymfonyRequest::create($appConfig['url']);
$request = SymfonyRequest::create($this->app['config']->get('app.url'));
}
$this->app->instance('request', Request::createFromBase($request));

Expand All @@ -208,8 +209,6 @@ private function initialize($request = null)
});
}

$this->app->make('Illuminate\Contracts\Http\Kernel')->bootstrap();

// Record all triggered events by adding a wildcard event listener
// Since Laravel 5.4 wildcard event handlers receive the event name as the first argument,
// but for earlier Laravel versions the firing() method of the event dispatcher should be used
Expand Down