1
1
.. index ::
2
- single: Configuration reference; Framework
2
+ single: Configuration reference; Framework
3
3
4
4
FrameworkBundle Configuration ("framework")
5
5
===========================================
@@ -92,7 +92,7 @@ Configuration
92
92
* `validation `_
93
93
* :ref: `enabled <reference-validation-enabled >`
94
94
* :ref: `cache <reference-validation-cache >`
95
- * `enable_annotations `_
95
+ * :ref: `enable_annotations < reference-validation-enable_annotations >`
96
96
* `translation_domain `_
97
97
* `strict_email `_
98
98
* `api `_
@@ -102,6 +102,8 @@ Configuration
102
102
* `debug `_
103
103
* `serializer `_
104
104
* :ref: `enabled <reference-serializer-enabled >`
105
+ * :ref: `cache <reference-serializer-cache >`
106
+ * :ref: `enable_annotations <reference-serializer-enable_annotations >`
105
107
106
108
secret
107
109
~~~~~~
@@ -134,7 +136,7 @@ http_method_override
134
136
~~~~~~~~~~~~~~~~~~~~
135
137
136
138
.. versionadded :: 2.3
137
- The ``http_method_override `` option was introduced in Symfony 2.3.
139
+ The ``http_method_override `` option was introduced in Symfony 2.3.
138
140
139
141
**type **: ``boolean `` **default **: ``true ``
140
142
@@ -177,7 +179,7 @@ Configures the IP addresses that should be trusted as proxies. For more
177
179
details, see :doc: `/cookbook/request/load_balancer_reverse_proxy `.
178
180
179
181
.. versionadded :: 2.3
180
- CIDR notation support was introduced in Symfony 2.3, so you can whitelist
182
+ CIDR notation support was introduced in Symfony 2.3, so you can whitelist
181
183
whole subnets (e.g. ``10.0.0.0/8 ``, ``fc00::/7 ``).
182
184
183
185
.. configuration-block ::
@@ -226,7 +228,7 @@ using the following keys:
226
228
* ``sublime ``
227
229
228
230
.. versionadded :: 2.3.14
229
- The ``emacs `` and ``sublime `` editors were introduced in Symfony 2.3.14.
231
+ The ``emacs `` and ``sublime `` editors were introduced in Symfony 2.3.14.
230
232
231
233
You can also specify a custom url string. If you do this, all percentage
232
234
signs (``% ``) must be doubled to escape that character. For example, if
@@ -522,7 +524,7 @@ enabled
522
524
.......
523
525
524
526
.. versionadded :: 2.2
525
- The ``enabled `` option was introduced in Symfony 2.2. Prior to Symfony
527
+ The ``enabled `` option was introduced in Symfony 2.2. Prior to Symfony
526
528
2.2, the profiler could only be disabled by omitting the ``framework.profiler ``
527
529
configuration entirely.
528
530
@@ -542,7 +544,7 @@ collect
542
544
.......
543
545
544
546
.. versionadded :: 2.3
545
- The ``collect `` option was introduced in Symfony 2.3. Previously, when
547
+ The ``collect `` option was introduced in Symfony 2.3. Previously, when
546
548
``profiler.enabled `` was ``false ``, the profiler *was * actually enabled,
547
549
but the collectors were disabled. Now, the profiler and the collectors
548
550
can be controlled independently.
@@ -1299,7 +1301,7 @@ fallbacks
1299
1301
**type **: ``string|array `` **default **: ``array('en') ``
1300
1302
1301
1303
.. versionadded :: 2.3.25
1302
- The ``fallbacks `` option was introduced in Symfony 2.3.25. Prior
1304
+ The ``fallbacks `` option was introduced in Symfony 2.3.25. Prior
1303
1305
to Symfony 2.3.25, it was called ``fallback `` and only allowed one fallback
1304
1306
language defined as a string. Please note that you can still use the
1305
1307
old ``fallback `` option if you want define only one fallback.
@@ -1317,7 +1319,7 @@ logging
1317
1319
.......
1318
1320
1319
1321
.. versionadded :: 2.6
1320
- The ``logging `` option was introduced in Symfony 2.6.
1322
+ The ``logging `` option was introduced in Symfony 2.6.
1321
1323
1322
1324
**default **: ``true `` when the debug mode is enabled, ``false `` otherwise.
1323
1325
@@ -1372,6 +1374,8 @@ cache
1372
1374
The service that is used to persist class metadata in a cache. The service
1373
1375
has to implement the :class: `Symfony\\ Component\\ Validator\\ Mapping\\ Cache\\ CacheInterface `.
1374
1376
1377
+ .. _reference-validation-enable_annotations :
1378
+
1375
1379
enable_annotations
1376
1380
..................
1377
1381
@@ -1391,7 +1395,7 @@ strict_email
1391
1395
............
1392
1396
1393
1397
.. versionadded :: 2.5
1394
- The ``strict_email `` option was introduced in Symfony 2.5.
1398
+ The ``strict_email `` option was introduced in Symfony 2.5.
1395
1399
1396
1400
**type **: ``Boolean `` **default **: ``false ``
1397
1401
@@ -1403,7 +1407,7 @@ api
1403
1407
...
1404
1408
1405
1409
.. versionadded :: 2.5
1406
- The ``api `` option was introduced in Symfony 2.5.
1410
+ The ``api `` option was introduced in Symfony 2.5.
1407
1411
1408
1412
**type **: ``string ``
1409
1413
@@ -1478,7 +1482,32 @@ enabled
1478
1482
1479
1483
Whether to enable the ``serializer `` service or not in the service container.
1480
1484
1481
- For more details, see :doc: `/cookbook/serializer `.
1485
+ .. _reference-serializer-cache :
1486
+
1487
+ cache
1488
+ .....
1489
+
1490
+ **type **: ``string ``
1491
+
1492
+ The service that is used to persist class metadata in a cache. The service
1493
+ has to implement the :class: `Doctrine\\ Common\\ Cache\\ Cache ` interface.
1494
+
1495
+ .. seealso ::
1496
+
1497
+ For more information, see :ref: `cookbook-serializer-enabling-metadata-cache `.
1498
+
1499
+ .. _reference-serializer-enable_annotations :
1500
+
1501
+ enable_annotations
1502
+ ..................
1503
+
1504
+ **type **: ``boolean `` **default **: ``false ``
1505
+
1506
+ If this option is enabled, serialization groups can be defined using annotations.
1507
+
1508
+ .. seealso ::
1509
+
1510
+ For more information, see :ref: `cookbook-serializer-using-serialization-groups-annotations `.
1482
1511
1483
1512
Full Default Configuration
1484
1513
--------------------------
0 commit comments