8000 [Console] remove deprecated shell · symfony/symfony@c234449 · GitHub
[go: up one dir, main page]

Skip to content

Commit c234449

Browse files
committed
[Console] remove deprecated shell
1 parent 3832bec commit c234449

File tree

3 files changed

+0
-292
lines changed

3 files changed

+0
-292
lines changed

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ public function __construct(KernelInterface $kernel)
4141

4242
parent::__construct('Symfony', Kernel::VERSION.' - '.$kernel->getName().'/'.$kernel->getEnvironment().($kernel->isDebug() ? '/debug' : ''));
4343

44-
$this->getDefinition()->addOption(new InputOption('--shell', '-s', InputOption::VALUE_NONE, 'Launch the shell.'));
45-
$this->getDefinition()->addOption(new InputOption('--process-isolation', null, InputOption::VALUE_NONE, 'Launch commands from shell as a separate process.'));
4644
$this->getDefinition()->addOption(new InputOption('--env', '-e', InputOption::VALUE_REQUIRED, 'The Environment name.', $kernel->getEnvironment()));
4745
$this->getDefinition()->addOption(new InputOption('--no-debug', null, InputOption::VALUE_NONE, 'Switches off debug mode.'));
4846
}
@@ -85,16 +83,6 @@ public function doRun(InputInterface $input, OutputInterface $output)
8583

8684
$this->setDispatcher($container->get('event_dispatcher'));
8785

88-
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-
91-
$shell = new Shell($this);
92-
$shell->setProcessIsolation($input->hasParameterOption(array('--process-isolation')));
93-
$shell->run();
94-
95-
return 0;
96-
}
97-
9886
return parent::doRun($input, $output);
9987
}
10088

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

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/Symfony/Component/Console/Shell.php

Lines changed: 0 additions & 233 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0