PHP Class Symfony\Component\Process\ExecutableFinder

Author: Fabien Potencier ([email protected])
Author: Johannes M. Schmitt ([email protected])
显示文件 Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
__construct ( )
addSuffix ( $suffix )
find ( string $name, string $default = null, array $extraDirs = [] ) : string Finds an executable by name.
setSuffixes ( array $suffixes )

Method Details

__construct() public method

public __construct ( )

addSuffix() public method

public addSuffix ( $suffix )

find() public method

Finds an executable by name.
public find ( string $name, string $default = null, array $extraDirs = [] ) : string
$name string The executable name (without the extension)
$default string The default to return if no executable is found
$extraDirs array Additional dirs to check into
return string The executable path or default value

setSuffixes() public method

public setSuffixes ( array $suffixes )
$suffixes array