deprecated the Shell Console class
This commit is contained in:
parent
6f7aae991c
commit
1c17928e58
@ -1,6 +1,11 @@
|
|||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
2.8.0
|
||||||
|
-----
|
||||||
|
|
||||||
|
* Deprecated the Shell
|
||||||
|
|
||||||
2.7.0
|
2.7.0
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
@ -86,6 +86,8 @@ class Application extends BaseApplication
|
|||||||
$this->setDispatcher($container->get('event_dispatcher'));
|
$this->setDispatcher($container->get('event_dispatcher'));
|
||||||
|
|
||||||
if (true === $input->hasParameterOption(array('--shell', '-s'))) {
|
if (true === $input->hasParameterOption(array('--shell', '-s'))) {
|
||||||
|
@trigger_error('The "--shell" option is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$shell = new Shell($this);
|
$shell = new Shell($this);
|
||||||
$shell->setProcessIsolation($input->hasParameterOption(array('--process-isolation')));
|
$shell->setProcessIsolation($input->hasParameterOption(array('--process-isolation')));
|
||||||
$shell->run();
|
$shell->run();
|
||||||
|
@ -16,6 +16,8 @@ use Symfony\Component\Console\Shell as BaseShell;
|
|||||||
/**
|
/**
|
||||||
* Shell.
|
* Shell.
|
||||||
*
|
*
|
||||||
|
* @deprecated since version 2.8, to be removed in 3.0.
|
||||||
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*/
|
*/
|
||||||
class Shell extends BaseShell
|
class Shell extends BaseShell
|
||||||
|
@ -23,6 +23,8 @@ use Symfony\Component\Process\PhpExecutableFinder;
|
|||||||
* Support for history and completion only works with a PHP compiled
|
* Support for history and completion only works with a PHP compiled
|
||||||
* with readline support (either --with-readline or --with-libedit)
|
* with readline support (either --with-readline or --with-libedit)
|
||||||
*
|
*
|
||||||
|
* @deprecated since version 2.8, to be removed in 3.0.
|
||||||
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Martin Hasoň <martin.hason@gmail.com>
|
* @author Martin Hasoň <martin.hason@gmail.com>
|
||||||
*/
|
*/
|
||||||
@ -44,6 +46,8 @@ class Shell
|
|||||||
*/
|
*/
|
||||||
public function __construct(Application $application)
|
public function __construct(Application $application)
|
||||||
{
|
{
|
||||||
|
@trigger_error('The '.__CLASS__.' class is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->hasReadline = function_exists('readline');
|
$this->hasReadline = function_exists('readline');
|
||||||
$this->application = $application;
|
$this->application = $application;
|
||||||
$this->history = getenv('HOME').'/.history_'.$application->getName();
|
$this->history = getenv('HOME').'/.history_'.$application->getName();
|
||||||
|
Reference in New Issue
Block a user