Shell (Component\Console)

Symfony\Component\Console\Shell

class 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)

Methods

__construct(Application $application)

Constructor.

run()

Runs the shell.

getProcessIsolation()
setProcessIsolation($processIsolation)

Details

public __construct(Application $application)

Constructor.

If there is no readline support for the current PHP executable a \RuntimeException exception is thrown.

Parameters

Application $application An application instance

public run()

Runs the shell.

public getProcessIsolation()

public setProcessIsolation($processIsolation)

Parameters

$processIsolation

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部