-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Routing] Add fallback to cultureless locale for internationalized routes #27957
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
[Routing] Add fallback to cultureless locale for internationalized routes #27957
Conversation
a1b44cd
to
3ae6eaa
Compare
@@ -46,8 +46,8 @@ protected function setUp() | |||
|
|||
$this->routeCollection = new RouteCollection(); | |||
$this->generatorDumper = new PhpGeneratorDumper($this->routeCollection); | |||
$this->testTmpFilepath = sys_get_temp_dir().DIRECTORY_SEPARATOR.'php_generator.'.$this->getName().'.php'; | |||
$this->largeTestTmpFilepath = sys_get_temp_dir().DIRECTORY_SEPARATOR.'php_generator.'.$this->getName().'.large.php'; | |||
$this->testTmpFilepath = sys_get_temp_dir().\DIRECTORY_SEPARATOR.'php_generator.'.$this->getName().'.php'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes were applied by the fabbot patch. I guess I should revert them ?
3ae6eaa
to
bd5dc07
Compare
bd5dc07
to
bb9ccbf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(just updated the implementation to make it shorter)
@nicolas-grekas Great job on making this shorter ! Is there any performance impact to "reprocess" everything everytime you generate an url ? |
the only impact this can have are at most two extra calls to strstr. I think that's OK :) |
(please fix fabbot issues) |
bb9ccbf
to
fd2e3c3
Compare
Thank you @fancyweb. |
…nationalized routes (fancyweb) This PR was merged into the 4.2-dev branch. Discussion ---------- [Routing] Add fallback to cultureless locale for internationalized routes | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #27938 | License | MIT | Doc PR | symfony/symfony-docs#10108 Please check the related issue for the context. TODO : - [x] Update CHANGELOG - [x] Update documentation Commits ------- fd2e3c3 [Routing] Add fallback to cultureless locale for internationalized routes
…s (Thomas Calvet, javiereguiluz) This PR was merged into the master branch. Discussion ---------- [Routing] Add locale fallback to internationalized routes Related PR : symfony/symfony#27957 Commits ------- 02cc739 Minor reword c15df9d [Routing] Add locale fallback to internationalized routes
Thanks from me as well. |
Please check the related issue for the context.
TODO :