diff --git a/bin/drupal.php b/bin/drupal.php index 5d916630b..20bd36cda 100644 --- a/bin/drupal.php +++ b/bin/drupal.php @@ -1,18 +1,15 @@ getFileName()))); +chdir($drupalRoot); -$drupal = new Drupal($autoload, $root, $appRoot); +$drupal = new DrupalConsole($autoload, $drupalRoot, ConsolePaths::consoleCore()); $container = $drupal->boot(); if (!$container) { diff --git a/src/Bootstrap/AddServicesCompilerPass.php b/src/Bootstrap/AddServicesCompilerPass.php index e0708bdfa..d9ac58ec1 100644 --- a/src/Bootstrap/AddServicesCompilerPass.php +++ b/src/Bootstrap/AddServicesCompilerPass.php @@ -38,8 +38,8 @@ public function process(ContainerBuilder $container) new FileLocator($this->root) ); - $loader->load($this->root. DRUPAL_CONSOLE_CORE . 'services.yml'); - $loader->load($this->root. DRUPAL_CONSOLE . 'services.yml'); + $loader->load(DRUPAL_CONSOLE_CORE . '/services.yml'); + $loader->load(DRUPAL_CONSOLE . '/services.yml'); $finder = new Finder(); $finder->files() @@ -47,7 +47,7 @@ public function process(ContainerBuilder $container) ->in( sprintf( '%s/config/services/drupal-console', - $this->root.DRUPAL_CONSOLE + DRUPAL_CONSOLE ) ); @@ -71,7 +71,7 @@ public function process(ContainerBuilder $container) ->in( sprintf( '%s/config/services/drupal-core', - $this->root.DRUPAL_CONSOLE + DRUPAL_CONSOLE ) ); diff --git a/src/Bootstrap/Drupal.php b/src/Bootstrap/Drupal.php index cd93150dc..6f1326807 100644 --- a/src/Bootstrap/Drupal.php +++ b/src/Bootstrap/Drupal.php @@ -70,8 +70,8 @@ public function boot() $container->get('console.renderer') ->setSkeletonDirs( [ - $this->root.DRUPAL_CONSOLE.'/templates/', - $this->root.DRUPAL_CONSOLE_CORE.'/templates/' + DRUPAL_CONSOLE.'/templates/', + DRUPAL_CONSOLE_CORE.'/templates/' ] );