Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #35855 [Routing] Improve localized routes performances (mtarld)
This PR was merged into the 4.4 branch. Discussion ---------- [Routing] Improve localized routes performances | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | License | MIT Implementation of the following idea: #35735 (review) Improve route matching performances by turning dynamic routes with fixed `_locale` to actual static routes. Commits ------- 8e9eafe [Routing] Improve localized routes performances
- Loading branch information
Showing
3 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher14.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
/** | ||
* This file has been auto-generated | ||
* by the Symfony Routing Component. | ||
*/ | ||
|
||
return [ | ||
false, // $matchHost | ||
[ // $staticRoutes | ||
'/fr/accueil' => [[['_route' => 'home', '_locale' => 'fr'], null, null, null, false, false, null]], | ||
'/en/home' => [[['_route' => 'home', '_locale' => 'en'], null, null, null, false, false, null]], | ||
], | ||
[ // $regexpList | ||
], | ||
[ // $dynamicRoutes | ||
], | ||
null, // $checkCondition | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters