Copied!

Generic executable finder.

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.

  • param string $name The executable name (without the extension)
  • param string|null $default The default to return if no executable is found
  • param array $extraDirs Additional dirs to check into
public setSuffixes(array $suffixes)
 

Replaces default suffixes of executable.

Properties
private $suffixes
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration