Symfony\Component\Finder\Shell\Shell
- Author: Jean-François Simon <contact@jfsimon.fr>
Synopsis
class Shell
{
- // constants
- const TYPE_UNIX = 1;
- const TYPE_DARWIN = 2;
- const TYPE_CYGWIN = 3;
- const TYPE_WINDOWS = 4;
- const TYPE_BSD = 5;
- // members
- private string|null $type;
- // methods
- public int getType()
- public bool testCommand()
- private int guessType()
Tasks
Line | Task |
---|---|
54 | find a way to test if windows command exists |
62 | find a better way (command could not be available) |
Constants
Name | Value |
---|---|
TYPE_UNIX | 1 |
TYPE_DARWIN | 2 |
TYPE_CYGWIN | 3 |
TYPE_WINDOWS | 4 |
TYPE_BSD | 5 |
Members
private
Methods
private
- guessType() — Guesses OS type.
public
- getType() — Returns guessed OS type.
- testCommand() — Tests if a command is available.