Generic executable finder.
- author Fabien Potencier
- author Johannes M.
Schmitt
CloneableInstantiable
Methods |
public addSuffix(string $suffix) : void Adds new possible suffix to check for executable, including the dot (.). $finder = new ExecutableFinder(); $finder->addSuffix('.foo'); |
public find(string $name, ?string $default = NULL, array $extraDirs = []) : ?string Finds an executable by name.
|
public setSuffixes(array $suffixes) : void Replaces default suffixes of executable. |
Constants |
private Symfony |
Properties |
private array $suffixes = [] |