public static function createFromTarget(TargetInterface $target, $drush_bin = 'drush')
  {
    $options = [];
    $alias = '@self';
    if ($target instanceof DrushTargetInterface) {
      $alias = $target->getAlias();
    }
    return new static($target, $drush_bin, $options, $alias);
  }
public static function createFromTarget(TargetInterface $target, $drush_bin = 'drush')
  {
    $options = [];
    $alias = '@self';
    if ($target instanceof DrushTargetInterface) {
      $alias = $target->getAlias();
    }
    return new static($target, $drush_bin, $options, $alias);
  }
public static function createFromTarget ( TargetInterface $ target , $ drush_bin = 'drush' ) { $ options = [ ] ; $ alias = '@self' ; if ( $ target instanceof DrushTargetInterface ) { $ alias = $ target -> getAlias ( ) ; } return new static ( $ target , $ drush_bin , $ options , $ alias ) ; }
Instansiate a new Drush Driver instance.

@param TargetInterface $target
@param string $drush_bin path to drush executable.
Instansiate a new Drush Driver instance .