feature #15892 deprecated the Shell Console class (fabpot)
This PR was merged into the 2.8 branch.
Discussion
----------
deprecated the Shell Console class
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | yes
| Tests pass? | yes
| Fixed tickets | one of #11742
| License | MIT
| Doc PR | n/a
Commits
-------
1c17928
deprecated the Shell Console class
This commit is contained in:
commit
7079aa9e96
@ -1,6 +1,11 @@
|
||||
CHANGELOG
|
||||
=========
|
||||
|
||||
2.8.0
|
||||
-----
|
||||
|
||||
* Deprecated the Shell
|
||||
|
||||
2.7.0
|
||||
-----
|
||||
|
||||
|
@ -86,6 +86,8 @@ class Application extends BaseApplication
|
||||
$this->setDispatcher($container->get('event_dispatcher'));
|
||||
|
||||
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->setProcessIsolation($input->hasParameterOption(array('--process-isolation')));
|
||||
$shell->run();
|
||||
|
@ -16,6 +16,8 @@ use Symfony\Component\Console\Shell as BaseShell;
|
||||
/**
|
||||
* Shell.
|
||||
*
|
||||
* @deprecated since version 2.8, to be removed in 3.0.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*/
|
||||
class Shell extends BaseShell
|
||||
|
@ -23,6 +23,8 @@ use Symfony\Component\Process\PhpExecutableFinder;
|
||||
* Support for history and completion only works with a PHP compiled
|
||||
* 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 Martin Hasoň <martin.hason@gmail.com>
|
||||
*/
|
||||
@ -44,6 +46,8 @@ class Shell
|
||||
*/
|
||||
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->application = $application;
|
||||
$this->history = getenv('HOME').'/.history_'.$application->getName();
|
||||
|
Reference in New Issue
Block a user