Generic executable finder.
- author Fabien Potencier
- author Johannes M.
Schmitt
CloneableInstantiable
Methods |
public addSuffix(string $suffix) Adds new possible suffix to check for executable.
|
public find(string $name, ?string $default = NULL, array $extraDirs = []) : ?string Finds an executable by name.
|
public setSuffixes(array $suffixes) Replaces default suffixes of executable.
|
Properties |
private $suffixes = ['.exe', '.bat', '.cmd', '.com'] |