8000 feature #15892 deprecated the Shell Console class (fabpot) · symfony/symfony@7079aa9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7079aa9

Browse files
committed
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
2 parents 825490a + 1c17928 commit 7079aa9

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
2.8.0
5+
-----
6+
7+
* Deprecated the Shell
8+
49
2.7.0
510
-----
611

src/Symfony/Bundle/FrameworkBundle/Console/Application.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ public function doRun(InputInterface $input, OutputInterface $output)
8686
$this->setDispatcher($container->get('event_dispatcher'));
8787

8888
if (true === $input->hasParameterOption(array('--shell', '-s'))) {
89+
@trigger_error('The "--shell" option is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
90+
8991
$shell = new Shell($this);
9092
$shell->setProcessIsolation($input->hasParameterOption(array('--process-isolation')));
9193
$shell->run();

src/Symfony/Bundle/FrameworkBundle/Console/Shell.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
/**
1717
* Shell.
1818
*
19+
* @deprecated since version 2.8, to be removed in 3.0.
20+
*
1921
* @author Fabien Potencier <fabien@symfony.com>
2022
*/
2123
class Shell extends BaseShell

src/Symfony/Component/Console/Shell.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
* Support for history and completion only works with a PHP compiled
2424
* with readline support (either --with-readline or --with-libedit)
2525
*
26+
* @deprecated since version 2.8, to be removed in 3.0.
27+
*
2628
* @author Fabien Potencier <fabien@symfony.com>
2729
* @author Martin Hasoň <martin.hason@gmail.com>
2830
*/
@@ -44,6 +46,8 @@ class Shell
4446
*/
4547
public function __construct(Application $application)
4648
{
49+
@trigger_error('The '.__CLASS__.' class is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
50+
4751
$this->hasReadline = function_exists('readline');
4852
$this->application = $application;
4953
$this->history = getenv('HOME').'/.history_'.$application->getName();

0 commit comments

Comments
 (0)
0