10000 Drop backward compatibility for debug commands · symfony/symfony@158f4fe · GitHub
[go: up one dir, main page]

Skip to content

Commit 158f4fe

Browse files
committed
Drop backward compatibility for debug commands
1 parent 156c4a2 commit 158f4fe

File tree

4 files changed

+0
-28
lines changed

4 files changed

+0
-28
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ protected function configure()
3131
{
3232
$this
3333
->setName('debug:config')
34-
->setAliases(array(
35-
'config:debug',
36-
))
3734
->setDefinition(array(
3835
new InputArgument('name', InputArgument::OPTIONAL, 'The bundle name or the extension alias'),
3936
))
@@ -57,10 +54,6 @@ protected function configure()
5754
*/
5855
protected function execute(InputInterface $input, OutputInterface $output)
5956
{
60-
if (false !== strpos($input->getFirstArgument(), ':d')) {
61-
$output->writeln('<comment>The use of "config:debug" command is deprecated since version 2.7 and will be removed in 3.0. Use the "debug:config" instead.</comment>');
62-
}
63-
6457
$name = $input->getArgument('name');
6558
< 10000 br>
6659
if (empty($name)) {

src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ protected function configure()
4040
{
4141
$this
4242
->setName('debug:container')
43-
->setAliases(array(
44-
'container:debug',
45-
))
4643
->setDefinition(array(
4744
new InputArgument('name', InputArgument::OPTIONAL, 'A service name (foo)'),
4845
new InputOption('show-private', null, InputOption::VALUE_NONE, 'Used to show public *and* private services'),
@@ -94,10 +91,6 @@ protected function configure()
9491
*/
9592
protected function execute(InputInterface $input, OutputInterface $output)
9693
{
97-
if (false !== strpos($input->getFirstArgument(), ':d')) {
98-
$output->writeln('<comment>The use of "container:debug" command is deprecated since version 2.7 and will be removed in 3.0. Use the "debug:container" instead.</comment>');
99-
}
100-
10194
$this->validateInput($input);
10295

10396
if ($input->getOption('parameters')) {

src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ protected function configure()
5050
{
5151
$this
5252
->setName('debug:router')
53-
->setAliases(array(
54-
'router:debug',
55-
))
5653
->setDefinition(array(
5754
new InputArgument('name', InputArgument::OPTIONAL, 'A route name'),
5855
new InputOption('show-controllers', null, InputOption::VALUE_NONE, 'Show assigned controllers in overview'),
@@ -77,10 +74,6 @@ protected function configure()
7774
*/
7875
protected function execute(InputInterface $input, OutputInterface $output)
7976
{
80-
if (false !== strpos($input->getFirstArgument(), ':d')) {
81-
$output->writeln('<comment>The use of "router:debug" command is deprecated since version 2.7 and will be removed in 3.0. Use the "debug:router" instead.</comment>');
82-
}
83-
8477
$name = $input->getArgument('name');
8578
$helper = new DescriptorHelper();
8679

src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ protected function configure()
3939
{
4040
$this
4141
->setName('debug:translation')
42-
->setAliases(array(
43-
'translation:debug',
44-
))
4542
->setDefinition(array(
4643
new InputArgument('locale', InputArgument::REQUIRED, 'The locale'),
4744
new InputArgument('bundle', InputArgument::REQUIRED, 'The bundle name'),
@@ -81,10 +78,6 @@ protected function configure()
8178
*/
8279
protected function execute(InputInterface $input, OutputInterface $output)
8380
{
84-
if (false !== strpos($input->getFirstArgument(), ':d')) {
85-
$output->writeln('<comment>The use of "translation:debug" command is deprecated since version 2.7 and will be removed in 3.0. Use the "debug:translation" instead.</comment>');
86-
}
87-
8881
$locale = $input->getArgument('locale');
8982
$domain = $input->getOption('domain');
9083
$bundle = $this->getContainer()->get('kernel')->getBundle($input->getArgument('bundle'));

0 commit comments

Comments
 (0)
0