Skip to content

Commit cd1a39d

Browse files
committed
minor #666 Sorted the framework.yaml options as the default Symfony recipe (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Sorted the framework.yaml options as the default Symfony recipe This fixes #651. Commits ------- 5d4cf07 Sorted the framework.yaml options as the default Symfony recipe
2 parents 067c6ec + 5d4cf07 commit cd1a39d

File tree

1 file changed

+16
-27
lines changed

1 file changed

+16
-27
lines changed

config/packages/framework.yaml

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,30 @@
11
framework:
2+
secret: '%env(APP_SECRET)%'
3+
default_locale: '%locale%'
4+
csrf_protection: { enabled: true }
5+
http_method_override: true
6+
trusted_hosts: ~
7+
# https://symfony.com/doc/current/reference/configuration/framework.html#handler-id
8+
session:
9+
handler_id: session.handler.native_file
10+
save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
11+
# When using the HTTP Cache, ESI allows to render page fragments separately
12+
# and with different cache configurations for each fragment
13+
# https://symfony.com/doc/current/book/http_cache.html#edge-side-includes
14+
esi: { enabled: true }
15+
fragments: { enabled: true }
16+
php_errors:
17+
log: true
218
assets:
319
json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'
4-
520
cache:
621
# this value is used as part of the "namespace" generated for the cache item keys
722
# to avoid collisions when multiple apps share the same cache backend (e.g. a Redis server)
823
# See https://symfony.com/doc/current/reference/configuration/framework.html#prefix-seed
924
prefix_seed: symfony-demo
10-
11-
csrf_protection: { enabled: true }
12-
13-
default_locale: '%locale%'
14-
15-
# When using the HTTP Cache, ESI allows to render page fragments separately
16-
# and with different cache configurations for each fragment
17-
# https://symfony.com/doc/current/book/http_cache.html#edge-side-includes
18-
esi: { enabled: true }
19-
20-
fragments: { enabled: true }
21-
22-
http_method_override: true
23-
2425
# The 'ide' option turns all of the file paths in an exception page
2526
# into clickable links that open the given file using your favorite IDE.
2627
# When 'ide' is set to null the file is opened in your web browser.
2728
# See https://symfony.com/doc/current/reference/configuration/framework.html#ide
2829
ide: ~
29-
30-
php_errors:
31-
log: true
32-
33-
secret: '%env(APP_SECRET)%'
34-
35-
session:
36-
handler_id: session.handler.native_file
37-
save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
38-
39-
trusted_hosts: ~
40-
4130
validation: { enable_annotations: true }

0 commit comments

Comments
 (0)