Skip to content

Commit

Permalink
Fix prefix based on locale
Browse files Browse the repository at this point in the history
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
  • Loading branch information
akovalyov authored and tobias-93 committed Aug 25, 2017
1 parent 0f44e3d commit 49c1069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Command/DumpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
),
Expand Down

0 comments on commit 49c1069

Please # to comment.