ExecutableFinder
    
            
            in package
            
        
    
    
    
Generic executable finder.
Tags
Table of Contents
Methods
- addSuffix() : void
 - Adds new possible suffix to check for executable, including the dot (.).
 - find() : string|null
 - Finds an executable by name.
 - setSuffixes() : void
 - Replaces default suffixes of executable.
 
Methods
addSuffix()
Adds new possible suffix to check for executable, including the dot (.).
    public
                    addSuffix(string $suffix) : void
    $finder = new ExecutableFinder(); $finder->addSuffix('.foo');
Parameters
- $suffix : string
 
find()
Finds an executable by name.
    public
                    find(string $name[, string|null $default = null ][, array<string|int, mixed> $extraDirs = [] ]) : string|null
    Parameters
- $name : string
 - 
                    
The executable name (without the extension)
 - $default : string|null = null
 - 
                    
The default to return if no executable is found
 - $extraDirs : array<string|int, mixed> = []
 - 
                    
Additional dirs to check into
 
Return values
string|nullsetSuffixes()
Replaces default suffixes of executable.
    public
                    setSuffixes(array<string|int, mixed> $suffixes) : void
    Parameters
- $suffixes : array<string|int, mixed>