Copied!

Generic executable finder.

CloneableInstantiable
Methods
public addSuffix(string $suffix)
 

Adds new possible suffix to check for executable.

  • return void
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.

  • return void
Properties
private $suffixes = ['.exe', '.bat', '.cmd', '.com']
© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration