Skip to content

Commit

Permalink
Import class.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Oct 20, 2017
1 parent c97dfee commit 3a6d8d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Preflight/LegacyPreflight.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static function setGlobalOptionContexts($input, $output)
$no = $input->getOption('no-interaction', false);
$pipe = $input->getOption('pipe', false);
$quiet = $input->getOption('quiet', false);
$simulate = \Drush\Drush::simulate();
$simulate = Drush::simulate();

drush_set_context('DRUSH_VERBOSE', $verbose || $debug);
drush_set_context('DRUSH_DEBUG', $debug);
Expand All @@ -112,7 +112,7 @@ public static function setGlobalOptionContexts($input, $output)

// Backend implies affirmative unless negative is explicitly specified
drush_set_context('DRUSH_NEGATIVE', $no);
drush_set_context('DRUSH_AFFIRMATIVE', $yes || $pipe || (\Drush\Drush::backend() && !$no));
drush_set_context('DRUSH_AFFIRMATIVE', $yes || $pipe || (Drush::backend() && !$no));

// Pipe implies quiet.
drush_set_context('DRUSH_QUIET', $quiet || $pipe);
Expand Down

0 comments on commit 3a6d8d7

Please sign in to comment.