Drop backward compatibility for debug commands
This commit is contained in:
parent
156c4a254d
commit
14bbd28ede
@ -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)) {
|
||||
|
@ -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')) {
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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'));
|
||||
|
Reference in New Issue
Block a user