Drop backward compatibility for debug commands

This commit is contained in:
Matthieu Auger 2015-03-28 00:22:40 +01:00
parent 156c4a254d
commit 14bbd28ede
4 changed files with 0 additions and 28 deletions

View File

@ -31,9 +31,6 @@ class ConfigDebugCommand extends AbstractConfigCommand
{
$this
->setName('debug:config')
->setAliases(array(
'config:debug',
))
->setDefinition(array(
new InputArgument('name', InputArgument::OPTIONAL, 'The bundle name or the extension alias'),
))
@ -57,10 +54,6 @@ EOF
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
if (false !== strpos($input->getFirstArgument(), ':d')) {
$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>');
}
$name = $input->getArgument('name');
if (empty($name)) {

View File

@ -40,9 +40,6 @@ class ContainerDebugCommand extends ContainerAwareCommand
{
$this
->setName('debug:container')
->setAliases(array(
'container:debug',
))
->setDefinition(array(
new InputArgument('name', InputArgument::OPTIONAL, 'A service name (foo)'),
new InputOption('show-private', null, InputOption::VALUE_NONE, 'Used to show public *and* private services'),
@ -94,10 +91,6 @@ EOF
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
if (false !== strpos($input->getFirstArgument(), ':d')) {
$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>');
}
$this->validateInput($input);
if ($input->getOption('parameters')) {

View File

@ -50,9 +50,6 @@ class RouterDebugCommand extends ContainerAwareCommand
{
$this
->setName('debug:router')
->setAliases(array(
'router:debug',
))
->setDefinition(array(
new InputArgument('name', InputArgument::OPTIONAL, 'A route name'),
new InputOption('show-controllers', null, InputOption::VALUE_NONE, 'Show assigned controllers in overview'),
@ -77,10 +74,6 @@ EOF
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
if (false !== strpos($input->getFirstArgument(), ':d')) {
$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>');
}
$name = $input->getArgument('name');
$helper = new DescriptorHelper();

View File

@ -39,9 +39,6 @@ class TranslationDebugCommand extends ContainerAwareCommand
{
$this
->setName('debug:translation')
->setAliases(array(
'translation:debug',
))
->setDefinition(array(
new InputArgument('locale', InputArgument::REQUIRED, 'The locale'),
new InputArgument('bundle', InputArgument::REQUIRED, 'The bundle name'),
@ -81,10 +78,6 @@ EOF
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
if (false !== strpos($input->getFirstArgument(), ':d')) {
$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>');
}
$locale = $input->getArgument('locale');
$domain = $input->getOption('domain');
$bundle = $this->getContainer()->get('kernel')->getBundle($input->getArgument('bundle'));