W3cubDocs

/Symfony 2.8

Symfony\Component\Finder\Shell\Shell

class Shell

Constants

TYPE_UNIX
TYPE_DARWIN
TYPE_CYGWIN
TYPE_WINDOWS
TYPE_BSD

Methods

int getType()

Returns guessed OS type.

bool testCommand(string $command)

Tests if a command is available.

Details

public int getType()

Returns guessed OS type.

Return Value

int

public bool testCommand(string $command)

Tests if a command is available.

Parameters

string $command

Return Value

bool

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Finder/Shell/Shell.html