Skip to content

Commit

Permalink
[console] Load extend commands. Fix #144. (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Jan 8, 2018
1 parent d88f4e2 commit ee34bad
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Bootstrap/DrupalConsoleCore.php
Expand Up @@ -82,6 +82,17 @@ public function boot()
$consoleRoot
);

$configurationManager = $container->get('console.configuration_manager');
$directory = $configurationManager->getConsoleDirectory() . 'extend/';
$autoloadFile = $directory . 'vendor/autoload.php';
if (is_file($autoloadFile)) {
include_once $autoloadFile;
$extendServicesFile = $directory . 'extend.console.uninstall.services.yml';
if (is_file($extendServicesFile)) {
$loader->load($extendServicesFile);
}
}

$container->get('console.renderer')
->setSkeletonDirs(
[
Expand Down

0 comments on commit ee34bad

Please sign in to comment.