8000 minor #11627 [FrameworkBundle] [TwigBundle] Move debug commands to de… · symfony/symfony@9680c35 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9680c35

Browse files
minor #11627 [FrameworkBundle] [TwigBundle] Move debug commands to debug namespace (matthieuauger)
This PR was merged into the 2.6-dev branch. Discussion ---------- [FrameworkBundle] [TwigBundle] Move debug commands to debug namespace | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | - | License | MIT Instead of having several namespaces with only one debug command (container:debug, event-dispatcher:debug), move all these debug commands to a new **debug** namespace. Related to #10388 (comment) I don't how to tag these aliases as deprecated as there are only here for backward compatibility. The renaming should also be done in the Swiftmailer Bundle. Commits ------- fd0e229 Move debug commands to debug namespace
2 parents 3baea1f + fd0e229 commit 9680c35

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ class ConfigDebugCommand extends AbstractConfigCommand
3030
protected function configure()
3131
{
3232
$this
33-
->setName('config:debug')
33+
->setName('debug:config')
34+
->setAliases(array(
35+
'config:debug',
36+
))
3437
->setDefinition(array(
3538
new InputArgument('name', InputArgument::OPTIONAL, 'The Bundle name or the extension alias'),
3639
))

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ class ContainerDebugCommand extends ContainerAwareCommand
3838
protected function configure()
3939
{
4040
$this
41-
->setName('container:debug')
41+
->setName('debug:container')
42+
->setAliases(array(
43+
'container:debug',
44+
))
4245
->setDefinition(array(
4346
new InputArgument('name', InputArgument::OPTIONAL, 'A service name (foo)'),
4447
new InputOption('show-private', null, InputOption::VALUE_NONE, 'Used to show public *and* private services'),

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ public function isEnabled()
4949
protected function configure()
5050
{
5151
$this
52-
->setName('router:debug')
52+
->setName('debug:router')
53+
->setAliases(array(
54+
'router:debug',
55+
))
5356
->setDefinition(array(
5457
new InputArgument('name', InputArgument::OPTIONAL, 'A route name'),
5558
new InputOption('show-controllers', null, InputOption::VALUE_NONE, 'Show assigned controllers in overview'),

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ class TranslationDebugCommand extends ContainerAwareCommand
3838
protected function configure()
3939
{
4040
$this
41-
->setName('translation:debug')
41+
->setName('debug:translation')
42+
->setAliases(array(
43+
'translation:debug',
44+
))
4245
->setDefinition(array(
4346
new InputArgument('locale', InputArgument::REQUIRED, 'The locale'),
4447
new InputArgument('bundle', InputArgument::REQUIRED, 'The bundle name'),

src/Symfony/Bundle/TwigBundle/Command/DebugCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ class DebugCommand extends ContainerAwareCommand
2727
protected function configure()
2828
{
2929
$this
30-
->setName('twig:debug')
30+
->setName('debug:twig')
31+
->setAliases(array(
32+
'twig:debug',
33+
))
3134
->setDefinition(array(
3235
new InputArgument('filter', InputArgument::OPTIONAL, 'Show details for all entries matching this filter'),
3336
new InputOption('format', null, InputOption::VALUE_REQUIRED, 'Output format: text or json', 'text'),

0 commit comments

Comments
 (0)
0