Skip to content

Commit 49c1069

Browse files
akovalyovtobias-93
authored andcommitted
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
1 parent 0f44e3d commit 49c1069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/DumpCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ private function doDump(InputInterface $input, OutputInterface $output)
112112
new RoutesResponse(
113113
$baseUrl,
114114
$this->getExposedRoutesExtractor()->getRoutes(),
115-
$input->getOption('locale'),
115+
$this->getExposedRoutesExtractor()->getPrefix($input->getOption('locale')),
116116
$this->getExposedRoutesExtractor()->getHost(),
117117
$this->getExposedRoutesExtractor()->getScheme()
118118
),

0 commit comments

Comments
 (0)