resolveCommand() public method

Resolve the absolute path to a command.
public resolveCommand ( string $command ) : string
$command string
return string
Example #1
0
 /**
  * Get the full path to the Drush executable.
  *
  * @return string
  */
 public function getDrushExecutable()
 {
     if (getenv('PLATFORMSH_CLI_DRUSH')) {
         return getenv('PLATFORMSH_CLI_DRUSH');
     }
     return $this->shellHelper->resolveCommand('drush');
 }
 /**
  * Get the full path to the Drush executable.
  *
  * @return string
  *   The absolute path to the executable, or 'drush' if the path is not
  *   known.
  */
 protected function getDrushExecutable()
 {
     if ($this->config->has('local.drush_executable')) {
         return $this->config->get('local.drush_executable');
     }
     return $this->shellHelper->resolveCommand('drush');
 }