PHP Class GrumPHP\Locator\ExternalCommand

Show file Open project: phpro/grumphp Class Usage Examples

Protected Properties

Property Type Description
$binDir string
$executableFinder Symfony\Component\Process\ExecutableFinder

Public Methods

Method Description
__construct ( string $binDir, ExecutableFinder $executableFinder )
locate ( string $command, boolean $forceUnix = false ) : string

Method Details

__construct() public method

public __construct ( string $binDir, ExecutableFinder $executableFinder )
$binDir string
$executableFinder Symfony\Component\Process\ExecutableFinder

locate() public method

public locate ( string $command, boolean $forceUnix = false ) : string
$command string
$forceUnix boolean This parameter makes it possible to force unix style commands on a windows environment. This can be useful in git hooks.
return string

Property Details

$binDir protected property

protected string $binDir
return string

$executableFinder protected property

protected ExecutableFinder,Symfony\Component\Process $executableFinder
return Symfony\Component\Process\ExecutableFinder