Skip to content

Commit 8a8ea6f

Browse files
committed
Merge pull request #2241 from 1ed/framework-ref
[Reference] updated framework config reference
2 parents 782c649 + ea17640 commit 8a8ea6f

File tree

1 file changed

+28
-14
lines changed

1 file changed

+28
-14
lines changed

reference/configuration/framework.rst

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -377,27 +377,33 @@ Full Default Configuration
377377
.. code-block:: yaml
378378
379379
framework:
380-
381-
# general configuration
380+
charset: ~
381+
secret: ~
382382
trust_proxy_headers: false
383-
secret: ~ # Required
383+
trusted_proxies: []
384384
ide: ~
385385
test: ~
386386
default_locale: en
387387
388388
# form configuration
389389
form:
390-
enabled: true
390+
enabled: false
391391
csrf_protection:
392-
enabled: true
392+
enabled: false
393393
field_name: _token
394394
395395
# esi configuration
396396
esi:
397-
enabled: true
397+
enabled: false
398+
399+
# fragments configuration
400+
fragments:
401+
enabled: false
402+
path: /_fragment
398403
399404
# profiler configuration
400405
profiler:
406+
enabled: false
401407
only_exceptions: false
402408
only_master_requests: false
403409
dsn: file:%kernel.cache_dir%/profiler
@@ -417,11 +423,17 @@ Full Default Configuration
417423
type: ~
418424
http_port: 80
419425
https_port: 443
420-
# if false, an empty URL will be generated if a route is missing required parameters
421-
strict_requirements: %kernel.debug%
426+
427+
# set to true to throw an exception when a parameter does not match the requirements
428+
# set to false to disable exceptions when a parameter does not match the requirements (and return null instead)
429+
# set to null to disable parameter checks against requirements
430+
# 'true' is the preferred configuration in development mode, while 'false' or 'null' might be preferred in production
431+
strict_requirements: true
422432
423433
# session configuration
424434
session:
435+
436+
# DEPRECATED! Session starts on demand
425437
auto_start: false
426438
storage_id: session.storage.native
427439
handler_id: session.handler.native_file
@@ -472,8 +484,8 @@ Full Default Configuration
472484
loaders: []
473485
packages:
474486
475-
# A collection of named packages
476-
some_package_name:
487+
# Prototype
488+
name:
477489
version: ~
478490
version_format: %%s?%%s
479491
base_urls:
@@ -482,20 +494,22 @@ Full Default Configuration
482494
483495
# translator configuration
484496
translator:
485-
enabled: true
497+
enabled: false
486498
fallback: en
487499
488500
# validation configuration
489501
validation:
490-
enabled: true
502+
enabled: false
491503
cache: ~
492504
enable_annotations: false
505+
translation_domain: validators
493506
494507
# annotation configuration
495508
annotations:
496509
cache: file
497-
file_cache_dir: "%kernel.cache_dir%/annotations"
498-
debug: true
510+
file_cache_dir: %kernel.cache_dir%/annotations
511+
debug: %kernel.debug%
512+
499513
500514
.. _`protocol-relative`: http://tools.ietf.org/html/rfc3986#section-4.2
501515
.. _`sprintf()`: http://php.net/manual/en/function.sprintf.php

0 commit comments

Comments
 (0)