Platformsh\Cli\Helper\ShellHelperInterface::resolveCommand PHP Метод

resolveCommand() публичный Метод

Resolve the absolute path to a command.
public resolveCommand ( string $command ) : string
$command string
Результат string
    public function resolveCommand($command);

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