TYPO3
7.6
|
Public Member Functions | |
__construct (Application $application) | |
run () | |
getProcessIsolation () | |
setProcessIsolation ($processIsolation) | |
Protected Member Functions | |
getHeader () | |
getPrompt () | |
getOutput () | |
getApplication () | |
Private Member Functions | |
autocompleter ($text) | |
readline () | |
Private Attributes | |
$application | |
$history | |
$output | |
$hasReadline | |
$processIsolation = false | |
A Shell wraps an Application to add shell capabilities to it.
Support for history and completion only works with a PHP compiled with readline support (either –with-readline or –with-libedit)
Definition at line 28 of file console/Shell.php.
__construct | ( | Application | $application | ) |
Constructor.
If there is no readline support for the current PHP executable a exception is thrown.
Application | $application | An application instance |
Definition at line 44 of file console/Shell.php.
References Shell\$application, and Application\getName().
|
private |
Tries to return autocompletion for the current entered text.
string | $text | The last segment of the entered text |
Definition at line 168 of file console/Shell.php.
|
protected |
Definition at line 156 of file console/Shell.php.
|
protected |
Returns the shell header.
Definition at line 126 of file console/Shell.php.
Referenced by Shell\run().
|
protected |
Definition at line 151 of file console/Shell.php.
getProcessIsolation | ( | ) |
Definition at line 215 of file console/Shell.php.
|
protected |
|
private |
Reads a single line from standard input.
Definition at line 202 of file console/Shell.php.
run | ( | ) |
setProcessIsolation | ( | $processIsolation | ) |
Definition at line 220 of file console/Shell.php.
|
private |
Definition at line 30 of file console/Shell.php.
Referenced by Shell\__construct().
|
private |
Definition at line 33 of file console/Shell.php.
|
private |
Definition at line 31 of file console/Shell.php.
|
private |
Definition at line 32 of file console/Shell.php.
|
private |
Definition at line 34 of file console/Shell.php.