@@ -142,40 +142,6 @@ service container parameter called ``kernel.trusted_proxies``.
142
142
143
143
For more details, see :doc: `/cookbook/request/load_balancer_reverse_proxy `.
144
144
145
- .. versionadded :: 2.3
146
- CIDR notation support was introduced in Symfony 2.3, so you can whitelist whole
147
- subnets (e.g. ``10.0.0.0/8 ``, ``fc00::/7 ``).
148
-
149
- .. configuration-block ::
150
-
151
- .. code-block :: yaml
152
-
153
- # app/config/config.yml
154
- framework :
155
- trusted_proxies : [192.0.0.1, 10.0.0.0/8]
156
-
157
- .. code-block :: xml
158
-
159
- <!-- app/config/config.xml -->
160
- <?xml version =" 1.0" encoding =" UTF-8" ?>
161
- <container xmlns =" http://symfony.com/schema/dic/services"
162
- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
163
- xmlns : framework =" http://symfony.com/schema/dic/symfony"
164
- xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
165
- http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
166
-
167
- <framework : config trusted-proxies =" 192.0.0.1, 10.0.0.0/8" >
168
- <!-- ... -->
169
- </framework : config >
170
- </container >
171
-
172
- .. code-block :: php
173
-
174
- // app/config/config.php
175
- $container->loadFromExtension('framework', array(
176
- 'trusted_proxies' => array('192.0.0.1', '10.0.0.0/8'),
177
- ));
178
-
179
145
ide
180
146
~~~
181
147
@@ -327,40 +293,8 @@ response.
327
293
'trusted_hosts' => array('acme.com', 'acme.org'),
328
294
));
329
295
330
- Hosts can also be configured using regular expressions, which make it easier to
331
- respond to any subdomain:
332
-
333
- .. configuration-block ::
334
-
335
- .. code-block :: yaml
336
-
337
- # app/config/config.yml
338
- framework :
339
- trusted_hosts : ['.*\.?acme.com$', '.*\.?acme.org$']
340
-
341
- .. code-block :: xml
342
-
343
- <!-- app/config/config.xml -->
344
- <?xml version =" 1.0" encoding =" UTF-8" ?>
345
- <container xmlns =" http://symfony.com/schema/dic/services"
346
- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
347
- xmlns : framework =" http://symfony.com/schema/dic/symfony"
348
- xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
349
- http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
350
-
351
- <framework : config >
352
- <framework : trusted-host >.*\.?acme.com$</framework : trusted-host >
353
- <framework : trusted-host >.*\.?acme.org$</framework : trusted-host >
354
- <!-- ... -->
355
- </framework : config >
356
- </container >
357
-
358
- .. code-block :: php
359
-
360
- // app/config/config.php
361
- $container->loadFromExtension('framework', array(
362
- 'trusted_hosts' => array('.*\.?acme.com$', '.*\.?acme.org$'),
363
- ));
296
+ Hosts can also be configured using regular expressions (e.g.
297
+ ``.*\.?acme.com$ ``), which make it easier to respond to any subdomain.
364
298
365
299
In addition, you can also set the trusted hosts in the front controller using
366
300
the ``Request::setTrustedHosts() `` method::
@@ -605,7 +539,7 @@ password
605
539
606
540
**type **: ``string `` **default **: ``'' ``
607
541
608
- When needed, the password for hte profiling storage. It becomes the service
542
+ When needed, the password for the profiling storage. It becomes the service
609
543
container parameter called ``profiler.storage.password ``.
610
544
611
545
lifetime
@@ -621,6 +555,9 @@ the lifetime is expired. It becomes the service container parameter called
621
555
matcher
622
556
.......
623
557
558
+ Matcher options are configured to dynamically enable the profiler. For
559
+ instance, based on `ip `_ or :ref: `path <reference-profiler-matcher-path >`.
560
+
624
561
.. seealso ::
625
562
626
563
See :doc: `/cookbook/profiler/matchers ` for more information about using
@@ -657,7 +594,8 @@ resource
657
594
658
595
**type **: ``string `` **required **
659
596
660
- Specifies the path to the routes used by the default router.
597
+ The path the main routing resource (e.g. a YAML file) that contains the routes
598
+ and imports the router should load.
661
599
662
600
It becomes the service container parameter called ``router.resource ``.
663
601
@@ -691,8 +629,11 @@ strict_requirements
691
629
692
630
**type **: ``mixed `` **default **: ``true ``
693
631
694
- Determines the behaviour when a route matches, but the parameters do not match
695
- the specified requirements for that route. Can be one of:
632
+ Determines the routing generator behaviour. When generating a route that has
633
+ specific :ref: `requirements <book-routing-requirements >`, the generator can
634
+ behave differently in case the used parameters do not meet these requirements.
635
+
636
+ The value can be one of:
696
637
697
638
``true ``
698
639
Throw an exception when the requirements are not met;
@@ -703,7 +644,7 @@ the specified requirements for that route. Can be one of:
703
644
Disable checking the requirements (thus, match the route even when the
704
645
requirements don't match).
705
646
706
- ``false `` is recommended in the development environment, while ``false `` or
647
+ ``true `` is recommended in the development environment, while ``false `` or
707
648
``null `` might be preferred in production.
708
649
709
650
session
@@ -986,8 +927,12 @@ resources
986
927
987
928
**type **: ``string[] `` **default **: ``['FrameworkBundle:Form'] ``
988
929
989
- A list of all resources for form theming in PHP. If you have custom global form
990
- themes in ``src/WebsiteBundle/Resources/views/Form ``, you can configure this like:
930
+ A list of all resources for form theming in PHP. This setting is not required
931
+ if you're using the Twig format for your templates, in that case refer to
932
+ :ref: `the form book chapter <book-forms-theming-twig >`.
933
+
934
+ Assume you have custom global form themes in
935
+ ``src/WebsiteBundle/Resources/views/Form ``, you can configure this like:
991
936
992
937
.. configuration-block ::
993
938
@@ -1043,6 +988,10 @@ themes in ``src/WebsiteBundle/Resources/views/Form``, you can configure this lik
1043
988
The default form templates from ``FrameworkBundle:Form `` will always be
1044
989
included in the form resources.
1045
990
991
+ .. seealso ::
992
+
993
+ See :ref: `book-forms-theming-global ` for more information.
994
+
1046
995
.. _reference-templating-base-urls :
1047
996
1048
997
assets_base_urls
@@ -1090,7 +1039,9 @@ loaders
1090
1039
**type **: ``string[] ``
1091
1040
1092
1041
An array (or a string when configuring just one loader) of service ids for
1093
- templating loaders.
1042
+ templating loaders. Templating loaders are used to find and load templates from
1043
+ a resource (e.g. a filesystem or database). Templating loaders must implement
1044
+ :class: `Symfony\\ Component\\ Templating\\ Loader\\ LoaderInterface `.
1094
1045
1095
1046
packages
1096
1047
........
@@ -1264,7 +1215,8 @@ debug
1264
1215
Whether to enable debug mode for caching. If enabled, the cache will
1265
1216
automatically update when the original file is changed (both with code and
1266
1217
annotation changes). For performance reasons, it is recommended to disable
1267
- debug mode in production.
1218
+ debug mode in production, which will happen automatically if you use the
1219
+ default value.
1268
1220
1269
1221
.. _configuration-framework-serializer :
1270
1222
0 commit comments