Skip to content

Commit 0fbd4bf

Browse files
committed
[reference] Initial commit of just the barebones configuration options for the framework bundle
1 parent f9ec41a commit 0fbd4bf

File tree

1 file changed

+112
-0
lines changed

1 file changed

+112
-0
lines changed

reference/configuration/framework.rst

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
.. index::
2+
single: Configuration Reference; Framework
3+
4+
FrameworkBundle Configuration
5+
=============================
6+
7+
The ``FrameworkBundle`` contains most of the "base" framework functionality
8+
and can be configured under the ``framework`` key in your application configuration.
9+
This includes settings related to sessions, translation, forms, validation,
10+
routing and more.
11+
12+
Full Default Configuration
13+
--------------------------
14+
15+
.. configuration-block::
16+
17+
.. code-block:: yaml
18+
19+
framework:
20+
# general configuration
21+
cache_warmer: %kernel.debug%
22+
charset: ~
23+
secret: ~
24+
exception_controller: Symfony\\Bundle\\FrameworkBundle\\Controller\\ExceptionController::showAction
25+
ide: ~
26+
test: ~
27+
28+
# form configuration
29+
form:
30+
enabled: true
31+
csrf_protection:
32+
enabled: true
33+
field_name: _token
34+
35+
# esi configuration
36+
esi:
37+
enabled: true
38+
39+
# profiler configuration
40+
profiler:
41+
only_exceptions: false
42+
only_master_requests: false
43+
dsn: sqlite:%kernel.cache_dir%/profiler.db
44+
username: ''
45+
password: ''
46+
lifetime: 86400
47+
matcher:
48+
ip: ~
49+
path: ~
50+
service: ~
51+
52+
# router configuration
53+
router:
54+
cache_warmer: false
55+
resource: ~
56+
type: ~
57+
http_port: 80
58+
https_port: 443
59+
60+
# session configuration
61+
session:
62+
auto_start: ~
63+
default_locale: en
64+
storage_id: session.storage.native
65+
name: ~
66+
lifetime: ~
67+
path: ~
68+
domain: ~
69+
secure: ~
70+
httponly: ~
71+
72+
# templating configuration
73+
templating:
74+
assets_version: ~
75+
assets_base_urls: []
76+
cache: ~
77+
cache_warmer: false
78+
engines: []
79+
loaders: []
80+
packages: []
81+
82+
# translator configuration
83+
translator:
84+
enabled: true
85+
fallback: en
86+
87+
validation:
88+
enabled: true
89+
cache: ~
90+
enable_annotations: false
91+
92+
# annotations configuration
93+
annotations:
94+
cache: file
95+
file_cache:
96+
dir: %kernel.cache_dir%/annotations
97+
debug: %kernel.debug%
98+
99+
General Configuration
100+
---------------------
101+
102+
* ``cache_warmer`` (type: string)
103+
104+
* ``charset`` (type: string)
105+
106+
* ``secret`` (type: string, *required*)
107+
108+
* ``exception_controller`` (type: string)
109+
110+
* ``ide`` (type: string)
111+
112+
* ``test`` (type: Boolean)

0 commit comments

Comments
 (0)