From 49c1069132dcef371fb526351569deabeb6f0d8e Mon Sep 17 00:00:00 2001 From: Andrew Kovalyov Date: Thu, 27 Oct 2016 18:27:28 +0300 Subject: [PATCH] Fix prefix based on locale Similar RoutesResponse instantiation is done in https://github.com/FriendsOfSymfony/FOSJsRoutingBundle/blob/master/Controller/Controller.php#L97. But without this fix, outputs from controller and command are not equal, when JMSI18nRoutingBundle + `--locale` option are used. Conflicts: Command/DumpCommand.php --- Command/DumpCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/DumpCommand.php b/Command/DumpCommand.php index 29472cbb..243c6780 100644 --- a/Command/DumpCommand.php +++ b/Command/DumpCommand.php @@ -112,7 +112,7 @@ private function doDump(InputInterface $input, OutputInterface $output) new RoutesResponse( $baseUrl, $this->getExposedRoutesExtractor()->getRoutes(), - $input->getOption('locale'), + $this->getExposedRoutesExtractor()->getPrefix($input->getOption('locale')), $this->getExposedRoutesExtractor()->getHost(), $this->getExposedRoutesExtractor()->getScheme() ),