Symfony\Component\Console\Shell
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)
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Shell
{
- // members
- private $application;
- private $history;
- private $output;
- private $hasReadline;
- private $processIsolation;
- // methods
- public void __construct()
- public void run()
- protected string getHeader()
- protected string getPrompt()
- protected void getOutput()
- protected void getApplication()
- private Boolean|array autocompleter()
- private string readline()
- public void getProcessIsolation()
- public void setProcessIsolation()
Hierarchy
Extended by
Members
private
- $application
- $hasReadline
- $history
- $output
- $processIsolation
Methods
private
- autocompleter() — Tries to return autocompletion for the current entered text.
- readline() — Reads a single line from standard input.
protected
- getApplication()
- getHeader() — Returns the shell header.
- getOutput()
- getPrompt() — Renders a prompt.
public
- __construct() — Constructor.
- getProcessIsolation()
- run() — Runs the shell.
- setProcessIsolation()