Documentation

ExecutableFinder
in package

Generic executable finder.

Tags
author

Fabien Potencier fabien@symfony.com

author

Johannes M. Schmitt schmittjoh@gmail.com

Table of Contents

Properties

$suffixes  : array<string|int, mixed>

Methods

addSuffix()  : void
Adds new possible suffix to check for executable.
find()  : string|null
Finds an executable by name.
setSuffixes()  : void
Replaces default suffixes of executable.

Properties

$suffixes

private array<string|int, mixed> $suffixes = ['.exe', '.bat', '.cmd', '.com']

Methods

addSuffix()

Adds new possible suffix to check for executable.

public addSuffix(string $suffix) : void
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|null

setSuffixes()

Replaces default suffixes of executable.

public setSuffixes(array<string|int, mixed> $suffixes) : void
Parameters
$suffixes : array<string|int, mixed>

        
On this page

Search results