8000 [3.0] [FrameworkBundle] Drop backward compatibility for debug commands by matthieuauger · Pull Request #14091 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[3.0] [FrameworkBundle] Drop backward compatibility for debug commands #14091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 30, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Drop backward compatibility for debug commands
  • Loading branch information
matthieuauger committed Mar 27, 2015
commit 14bbd28ede7eaa460401d7b86ba13a225c9f6f4b
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ protected function configure()
{
$this
->setName('debug:config')
->setAliases(array(
'config:debug',
))
->setDefinition(array(
new InputArgument('name', InputArgument::OPTIONAL, 'The bundle name or the extension alias'),
))
Expand All @@ -57,10 +54,6 @@ protected function configure()
*/
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)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ protected function configure()
{
$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'),
Expand Down Expand Up @@ -94,10 +91,6 @@ protected function configure()
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
if (false !== strpos($input->getFirstArgument(), ':d')) {
$output->writeln('<comment>The use 8000 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')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ protected function configure()
{
$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'),
Expand All @@ -77,10 +74,6 @@ protected function configure()
*/
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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ protected function configure()
{
$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'),
Expand Down Expand Up @@ -81,10 +78,6 @@ protected function configure()
*/
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.</ 4E16 comment>');
}

$locale = $input->getArgument('locale');
$domain = $input->getOption('domain');
$bundle = $this->getContainer()->get('kernel')->getBundle($input->getArgument('bundle'));
Expand Down
0