Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3c59429

Browse files
committed
merged branch cordoval/patch-2 (PR symfony#529)
This PR was squashed before being merged into the master branch (closes symfony#529). Discussion ---------- [RFC] strict_requirements = null on production implements changes proposed on and replaces symfony#496 Commits ------- dfdf783 [RFC] strict_requirements = null on production
2 parents 1c71802 + dfdf783 commit 3c59429

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

app/config/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ framework:
88
secret: %secret%
99
router:
1010
resource: "%kernel.root_dir%/config/routing.yml"
11-
strict_requirements: %kernel.debug%
11+
strict_requirements: ~
1212
form: ~
1313
csrf_protection: ~
1414
validation: { enable_annotations: true }

app/config/config_dev.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ imports:
22
- { resource: config.yml }
33

44
framework:
5-
router: { resource: "%kernel.root_dir%/config/routing_dev.yml" }
5+
router:
6+
resource: "%kernel.root_dir%/config/routing_dev.yml"
7+
strict_requirements: true
68
profiler: { only_exceptions: false }
79

810
web_profiler:

app/config/config_prod.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
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-
#validation:
12-
# cache: apc
4+
#framework:
5+
# validation:
6+
# cache: apc
137

148
#doctrine:
159
# orm:

0 commit comments

Comments
 (0)