From f4f0087268b87317e7977c8ea961fce705aad4d4 Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Thu, 4 Sep 2014 22:00:14 -0300 Subject: [PATCH] This bugfix prevents results override of router:debug command since its class (RouterDebugCommand) is used as base for fos:js-routing:debug. | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Doc PR | none --- Command/RouterDebugExposedCommand.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Command/RouterDebugExposedCommand.php b/Command/RouterDebugExposedCommand.php index 5dfe37b5..924c949b 100644 --- a/Command/RouterDebugExposedCommand.php +++ b/Command/RouterDebugExposedCommand.php @@ -54,6 +54,11 @@ protected function configure() */ protected function execute(InputInterface $input, OutputInterface $output) { + // if called command is not fos:js-routing:debug, return parent logic + if ($input->hasArgument('command') && $input->getArgument('command') != $this->getName()) { + return parent::execute($input, $output); + } + /** @var ExposedRoutesExtractorInterface $extractor */ $extractor = $this->getContainer()->get('fos_js_routing.extractor');