@@ -208,16 +208,6 @@ Configuration
208
208
* `storage_id `_
209
209
* `use_cookies `_
210
210
211
- * `templating `_
212
-
213
- * :ref: `cache <reference-templating-cache >`
214
- * `engines `_
215
- * :ref: `form <reference-templating-form >`
216
-
217
- * `resources `_
218
-
219
- * `loaders `_
220
-
221
211
* `test `_
222
212
* `translator `_
223
213
@@ -245,7 +235,6 @@ Configuration
245
235
* `endpoint `_
246
236
247
237
* `static_method `_
248
- * `strict_email `_
249
238
* `translation_domain `_
250
239
251
240
* `workflows `_
@@ -1865,125 +1854,6 @@ package:
1865
1854
If you request an asset that is *not found * in the ``manifest.json `` file, the original -
1866
1855
*unmodified * - asset path will be returned.
1867
1856
1868
- templating
1869
- ~~~~~~~~~~
1870
-
1871
- .. deprecated :: 4.3
1872
-
1873
- The integration of the Templating component in FrameworkBundle has been
1874
- deprecated since version 4.3 and will be removed in 5.0. That's why all the
1875
- configuration options defined under ``framework.templating `` are deprecated too.
1876
-
1877
- .. _reference-templating-form :
1878
-
1879
- form
1880
- ....
1881
-
1882
- resources
1883
- """""""""
1884
-
1885
- **type **: ``string[] `` **default **: ``['FrameworkBundle:Form'] ``
1886
-
1887
- .. deprecated :: 4.3
1888
-
1889
- The integration of the Templating component in FrameworkBundle has been
1890
- deprecated since version 4.3 and will be removed in 5.0. Form theming with
1891
- PHP templates will no longer be supported and you'll need to use Twig instead.
1892
-
1893
- A list of all resources for form theming in PHP. This setting is not required
1894
- if you're :ref: `using the Twig format for your themes <forms-theming-twig >`.
1895
-
1896
- Assume you have custom global form themes in ``templates/form_themes/ ``, you can
1897
- configure this like:
1898
-
1899
- .. configuration-block ::
1900
-
1901
- .. code-block :: yaml
1902
-
1903
- # config/packages/framework.yaml
1904
- framework :
1905
- templating :
1906
- form :
1907
- resources :
1908
- - ' form_themes'
1909
-
1910
- .. code-block :: xml
1911
-
1912
- <!-- config/packages/framework.xml -->
1913
- <?xml version =" 1.0" encoding =" UTF-8" ?>
1914
- <container xmlns =" http://symfony.com/schema/dic/services"
1915
- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
1916
- xmlns : framework =" http://symfony.com/schema/dic/symfony"
1917
- xsi : schemaLocation =" http://symfony.com/schema/dic/services
1918
- https://symfony.com/schema/dic/services/services-1.0.xsd
1919
- http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
1920
-
1921
- <framework : config >
1922
- <framework : templating >
1923
- <framework : form >
1924
- <framework : resource >form_themes</framework : resource >
1925
- </framework : form >
1926
- </framework : templating >
1927
- </framework : config >
1928
- </container >
1929
-
1930
- .. code-block :: php
1931
-
1932
- // config/packages/framework.php
1933
- $container->loadFromExtension('framework', [
1934
- 'templating' => [
1935
- 'form' => [
1936
- 'resources' => [
1937
- 'form_themes',
1938
- ],
1939
- ],
1940
- ],
1941
- ]);
1942
-
1943
- .. note ::
1944
-
1945
- The default form templates from ``FrameworkBundle:Form `` will always
1946
- be included in the form resources.
1947
-
1948
- .. seealso ::
1949
-
1950
- See :ref: `forms-theming-global ` for more information.
1951
-
1952
- .. _reference-templating-cache :
1953
-
1954
- cache
1955
- .....
1956
-
1957
- **type **: ``string ``
1958
-
1959
- The path to the cache directory for templates. When this is not set, caching
1960
- is disabled.
1961
-
1962
- .. note ::
1963
-
1964
- When using Twig templating, the caching is already handled by the
1965
- TwigBundle and doesn't need to be enabled for the FrameworkBundle.
1966
-
1967
- engines
1968
- .......
1969
-
1970
- **type **: ``string[] `` / ``string `` **required **
1971
-
1972
- The Templating Engine to use. This can either be a string (when only one
1973
- engine is configured) or an array of engines.
1974
-
1975
- At least one engine is required.
1976
-
1977
- loaders
1978
- .......
1979
-
1980
- **type **: ``string[] ``
1981
-
1982
- An array (or a string when configuring just one loader) of service ids for
1983
- templating loaders. Templating loaders are used to find and load templates
1984
- from a resource (e.g. a filesystem or database). Templating loaders must
1985
- implement :class: `Symfony\\ Component\\ Templating\\ Loader\\ LoaderInterface `.
1986
-
1987
1857
translator
1988
1858
~~~~~~~~~~
1989
1859
@@ -2167,20 +2037,6 @@ metadata of the class. You can define an array of strings with the names of
2167
2037
several methods. In that case, all of them will be called in that order to load
2168
2038
the metadata.
2169
2039
2170
- strict_email
2171
- ............
2172
-
2173
- **type **: ``Boolean `` **default **: ``false ``
2174
-
2175
- .. deprecated :: 4.1
2176
-
2177
- The ``strict_email `` option was deprecated in Symfony 4.1. Use the new
2178
- ``email_validation_mode `` option instead.
2179
-
2180
- If this option is enabled, the `egulias/email-validator `_ library will be
2181
- used by the :doc: `/reference/constraints/Email ` constraint validator. Otherwise,
2182
- the validator uses a simple regular expression to validate email addresses.
2183
-
2184
2040
email_validation_mode
2185
2041
.....................
2186
2042
0 commit comments