File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,28 @@ type-hinted method arguments:
87
87
88
88
.. code-block :: xml
89
89
90
- <sensio-framework-extra : config >
91
- <request converters =" true" auto-convert =" true" />
92
- </sensio-framework-extra : config >
90
+ <!-- app/config/config.xml -->
91
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
92
+ <container xmlns =" http://symfony.com/schema/dic/services"
93
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
94
+ xmlns : sensio-framework-extra =" http://symfony.com/schema/dic/symfony_extra"
95
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
96
+ http://symfony.com/schema/dic/services/services-1.0.xsd" >
97
+
98
+ <sensio-framework-extra : config >
99
+ <request converters =" true" auto-convert =" true" />
100
+ </sensio-framework-extra : config >
101
+ </container >
102
+
103
+ .. code-block :: php
104
+
105
+ // app/config/config.php
106
+ $container->loadFromExtension('sensio_framework_extra', array(
107
+ 'request' => array(
108
+ 'converters' => true,
109
+ 'auto_convert' => false,
110
+ ),
111
+ ));
93
112
94
113
Adding a new value resolver requires creating a class that implements
95
114
:class: `Symfony\\ Component\\ HttpKernel\\ Controller\\ ArgumentValueResolverInterface `
You can’t perform that action at this time.
0 commit comments