Skip to content

Commit

Permalink
[console] Remove extra directory separators. (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Feb 12, 2018
1 parent 094c050 commit d9b655d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Bootstrap/DrupalConsoleCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,15 @@ public function boot()
$container = new ContainerBuilder();
$loader = new YamlFileLoader($container, new FileLocator($this->root));

if (substr($this->root, -1) === DIRECTORY_SEPARATOR) {
$this->root = substr($this->root, 0, -1);
}

$servicesFiles = [
$this->root.DRUPAL_CONSOLE_CORE.'/services.yml',
$this->root.DRUPAL_CONSOLE_CORE.'services.yml',
$this->root.'/services.yml',
$this->root.DRUPAL_CONSOLE.'/uninstall.services.yml',
$this->root.DRUPAL_CONSOLE.'/extend.console.uninstall.services.yml'
$this->root.DRUPAL_CONSOLE.'uninstall.services.yml',
$this->root.DRUPAL_CONSOLE.'extend.console.uninstall.services.yml'
];

foreach ($servicesFiles as $servicesFile) {
Expand Down

0 comments on commit d9b655d

Please sign in to comment.