Platformsh\Cli\Helper\ShellHelperInterface::resolveCommand PHP Méthode

resolveCommand() public méthode

Resolve the absolute path to a command.
public resolveCommand ( string $command ) : string
$command string
Résultat string
    public function resolveCommand($command);

Usage Example

 /**
  * 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');
 }
All Usage Examples Of Platformsh\Cli\Helper\ShellHelperInterface::resolveCommand