File tree 3 files changed +3
-18
lines changed
Bundle/FrameworkBundle/Resources/config
Component/Form/Extension/HttpFoundation
3 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 151
151
</service >
152
152
153
153
<!-- FormTypeHttpFoundationExtension -->
154
- <service id =" form.server_params" class =" Symfony\Component\Form\Util\ServerParams" public =" false" />
155
-
156
154
<service id =" form.type_extension.form.http_foundation" class =" Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension" >
157
155
<tag name =" form.type_extension" alias =" form" />
158
- <argument type =" service" id =" form.server_params" />
159
156
</service >
160
157
161
158
<!-- FormTypeValidatorExtension -->
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Form \Extension \HttpFoundation ;
13
13
14
14
use Symfony \Component \Form \AbstractExtension ;
15
- use Symfony \Component \Form \Util \ServerParams ;
16
15
17
16
/**
18
17
* Integrates the HttpFoundation component with the Form library.
21
20
*/
22
21
class HttpFoundationExtension extends AbstractExtension
23
22
{
24
- /**
25
- * @var ServerParams
26
- */
27
- private $ serverParams ;
28
-
29
- public function __construct (ServerParams $ serverParams = null )
30
- {
31
- $ this ->serverParams = $ serverParams ;
32
- }
33
-
34
23
protected function loadTypeExtensions ()
35
24
{
36
25
return array (
37
- new Type \FormTypeHttpFoundationExtension ($ this -> serverParams ),
26
+ new Type \FormTypeHttpFoundationExtension (),
38
27
);
39
28
}
40
29
}
Original file line number Diff line number Diff line change 15
15
use Symfony \Component \Form \Extension \HttpFoundation \EventListener \BindRequestListener ;
16
16
use Symfony \Component \Form \Extension \HttpFoundation \HttpFoundationRequestHandler ;
17
17
use Symfony \Component \Form \FormBuilderInterface ;
18
- use Symfony \Component \Form \Util \ServerParams ;
19
18
20
19
/**
21
20
* @author Bernhard Schussek <bschussek@gmail.com>
@@ -32,10 +31,10 @@ class FormTypeHttpFoundationExtension extends AbstractTypeExtension
32
31
*/
33
32
private $ requestHandler ;
34
33
35
- public function __construct (ServerParams $ serverParams = null )
<
6E25
tr class="diff-line-row">
34
+ public function __construct ()
36
35
{
37
36
$ this ->listener = new BindRequestListener ();
38
- $ this ->requestHandler = new HttpFoundationRequestHandler ($ serverParams );
37
+ $ this ->requestHandler = new HttpFoundationRequestHandler ();
39
38
}
40
39
41
40
/**
You can’t perform that action at this time.
0 commit comments