Platformsh\Cli\Helper\ShellHelperInterface::resolveCommand PHP Method

resolveCommand() public method

Resolve the absolute path to a command.
public resolveCommand ( string $command ) : string
$command string
return 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