Skip to content

Commit faee47c

Browse files
committed
added note in changelog about disabling requirements check
1 parent 5fbed36 commit faee47c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Symfony/Component/Routing/CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ CHANGELOG
1515
* The default requirement now uses possesive quantifiers when possible which
1616
improves matching performance by up to 20% because it prevents backtracking
1717
when it's not needed.
18+
* The ConfigurableRequirementsInterface can now also be used to disable the requirements
19+
check on URL generation completely by calling `setStrictRequirements(null)`. It
20+
improves performance in production environment as you should know that params always
21+
pass the requirements (otherwise it would break your link anyway).
1822

1923
2.1.0
2024
-----
@@ -37,5 +41,6 @@ CHANGELOG
3741
been used anyway without creating inconsistencies
3842
* [BC BREAK] RouteCollection::remove also removes a route from parent
3943
collections (not only from its children)
40-
* added strict_requirements option to disable exceptions (and generate empty
41-
URLs instead) when generating a route with an invalid parameter value
44+
* added ConfigurableRequirementsInterface that allows to disable exceptions
45+
(and generate empty URLs instead) when generating a route with an invalid
46+
parameter value

0 commit comments

Comments
 (0)