BackendResultSetter.php

Namespace

Drush\Backend

Classes

File

lib/Drush/Backend/BackendResultSetter.php
View source
  1. <?php
  2. namespace Drush\Backend;
  3. use Consolidation\AnnotatedCommand\Hooks\ExtractOutputInterface;
  4. class BackendResultSetter implements ExtractOutputInterface
  5. {
  6. public function extractOutput($structured_data) {
  7. $return = drush_backend_get_result();
  8. if (empty($return)) {
  9. drush_backend_set_result($structured_data);
  10. }
  11. }
  12. }