Skip to content

Commit

Permalink
Use Console's DrupalFinder for cosntructing Drupal object in installe…
Browse files Browse the repository at this point in the history
…r command (#3345)
  • Loading branch information
bradjones1 authored and jmolivas committed Jun 20, 2017
1 parent dcf768c commit 403d2bb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Command/Site/InstallCommand.php
Expand Up @@ -9,7 +9,6 @@

use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Config\Definition\Exception\Exception;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
Expand All @@ -24,7 +23,7 @@
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Console\Bootstrap\Drupal;
use Drupal\Console\Utils\Site;
use DrupalFinder\DrupalFinder;
use Drupal\Console\Core\Utils\DrupalFinder;

class InstallCommand extends Command
{
Expand Down Expand Up @@ -436,13 +435,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
try {
$drupalFinder = new DrupalFinder();
$drupalFinder->locateRoot(getcwd());
$composerRoot = $drupalFinder->getComposerRoot();
$drupalRoot = $drupalFinder->getDrupalRoot();

$this->runInstaller($io, $input, $database, $uri);

$autoload = $this->container->get('class_loader');
$drupal = new Drupal($autoload, $composerRoot, $drupalRoot);
$drupal = new Drupal($autoload, $drupalFinder);
$container = $drupal->boot();
$this->getApplication()->setContainer($container);
} catch (Exception $e) {
Expand Down

0 comments on commit 403d2bb

Please sign in to comment.