8000 merged branch Tobion/patch-1 (PR #397) · symfony/symfony-standard@85e19a5 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 85e19a5

Browse files
committed
merged branch Tobion/patch-1 (PR #397)
Commits ------- ef43472 added upgrade note for strict_requirements = null 33eaa39 configure strict_requirements: null in production Discussion ---------- configure strict_requirements: null in production possible since symfony/symfony#5187
2 parents 22771ee + ef43472 commit 85e19a5

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

UPGRADE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ a link cannot be generated):
7979
router:
8080
strict_requirements: %kernel.debug%
8181

82+
You can even disable the requirements check on production with `null` as you should
83+
know that the parameters for URL generation always pass the requirements, e.g. by
84+
validating them beforehand. This additionally enhances performance. See
85+
[config_prod.yml](https://github.com/symfony/symfony-standard/blob/master/app/config/config_prod.yml).
86+
8287
The `default_locale` parameter is now a setting of the main `framework`
8388
configuration (it was under the `framework.session` in 2.0):
8489

app/config/config_prod.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
imports:
22
- { resource: config.yml }
33

4+
# In production environment you should know that the parameters for URL generation
5+
# always pass the requirements. Otherwise it would break your link (or even site with
6+
# strict_requirements = true). So we can disable the requirements check completely for
7+
# enhanced performance with strict_requirements = null.
8+
framework:
9+
router:
10+
strict_requirements: null
11+
412
#doctrine:
513
# orm:
614
# metadata_cache_driver: apc

0 commit comments

Comments
 (0)
0