File tree Expand file tree Collapse file tree 3 files changed +3
-18
lines changed
Bundle/FrameworkBundle/Resources/config
Component/Form/Extension/HttpFoundation Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 151151 </service >
152152
153153 <!-- FormTypeHttpFoundationExtension -->
154- <service id =" form.server_params" class =" Symfony\Component\Form\Util\ServerParams" public =" false" />
155-
156154 <service id =" form.type_extension.form.http_foundation" class =" Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension" >
157155 <tag name =" form.type_extension" alias =" form" />
158- <argument type =" service" id =" form.server_params" />
159156 </service >
160157
161158 <!-- FormTypeValidatorExtension -->
Original file line number Diff line number Diff line change 1212namespace Symfony \Component \Form \Extension \HttpFoundation ;
1313
1414use Symfony \Component \Form \AbstractExtension ;
15- use Symfony \Component \Form \Util \ServerParams ;
1615
1716/**
1817 * Integrates the HttpFoundation component with the Form library.
2120 */
2221class HttpFoundationExtension extends AbstractExtension
2322{
24- /**
25- * @var ServerParams
26- */
27- private $ serverParams ;
28-
29- public function __construct (ServerParams $ serverParams = null )
30- {
31- $ this ->serverParams = $ serverParams ;
32- }
33-
3423 protected function loadTypeExtensions ()
3524 {
3625 return array (
37- new Type \FormTypeHttpFoundationExtension ($ this -> serverParams ),
26+ new Type \FormTypeHttpFoundationExtension (),
3827 );
3928 }
4029}
Original file line number Diff line number Diff line change 1515use Symfony \Component \Form \Extension \HttpFoundation \EventListener \BindRequestListener ;
1616use Symfony \Component \Form \Extension \HttpFoundation \HttpFoundationRequestHandler ;
1717use Symfony \Component \Form \FormBuilderInterface ;
18- use Symfony \Component \Form \Util \ServerParams ;
1918
2019/**
2120 * @author Bernhard Schussek <bschussek@gmail.com>
@@ -32,10 +31,10 @@ class FormTypeHttpFoundationExtension extends AbstractTypeExtension
3231 */
3332 private $ requestHandler ;
3433
35- public function __construct (ServerParams $ serverParams = null )
34+ public function __construct ()
3635 {
3736 $ this ->listener = new BindRequestListener ();
38- $ this ->re
4E7E
questHandler = new HttpFoundationRequestHandler ($ serverParams );
37+ $ this ->requestHandler = new HttpFoundationRequestHandler ();
3938 }
4039
4140 /**
You can’t perform that action at this time.
0 commit comments