Skip to content

Commit

Permalink
[console] Update DrupalKernel class. (#3110)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas authored Jan 20, 2017
1 parent 14c4eb8 commit 4a34cf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/Bootstrap/Drupal.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ public function boot($debug)
$request,
$this->autoload,
'prod',
false
false,
$this->appRoot
);
if ($debug) {
$io->writeln("\r\033[K\033[1A\r<info>✔</info>");
$io->writeln('Providing dynamic services');
$io->writeln('Registering dynamic services');
}
$drupalKernel->addServiceModifier(
new DrupalServiceModifier(
Expand Down
4 changes: 2 additions & 2 deletions src/Bootstrap/DrupalKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class DrupalKernel extends DrupalKernelBase
*/
public static function createFromRequest(Request $request, $class_loader, $environment, $allow_dumping = true, $app_root = null)
{
$kernel = new static($environment, $class_loader, $allow_dumping);
static::bootEnvironment();
$kernel = new static($environment, $class_loader, $allow_dumping, $app_root);
static::bootEnvironment($app_root);
$kernel->initializeSettings($request);
$kernel->handle($request);
return $kernel;
Expand Down

0 comments on commit 4a34cf4

Please sign in to comment.