Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b2a93b0

Browse filesBrowse files
committed
[Form] Removed depracted events PRE_BIND, BIND and POST_BIND
1 parent 7170421 commit b2a93b0
Copy full SHA for b2a93b0

File tree

Expand file treeCollapse file tree

6 files changed

+5
-405
lines changed
Filter options
Expand file treeCollapse file tree

6 files changed

+5
-405
lines changed

‎src/Symfony/Component/Form/Deprecated/FormEvents.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Deprecated/FormEvents.php
-28Lines changed: 0 additions & 28 deletions
This file was deleted.

‎src/Symfony/Component/Form/Extension/HttpFoundation/EventListener/BindRequestListener.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/HttpFoundation/EventListener/BindRequestListener.php
-84Lines changed: 0 additions & 84 deletions
This file was deleted.

‎src/Symfony/Component/Form/Extension/HttpFoundation/Type/FormTypeHttpFoundationExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/HttpFoundation/Type/FormTypeHttpFoundationExtension.php
-8Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Form\Extension\HttpFoundation\Type;
1313

1414
use Symfony\Component\Form\AbstractTypeExtension;
15-
use Symfony\Component\Form\Extension\HttpFoundation\EventListener\BindRequestListener;
1615
use Symfony\Component\Form\RequestHandlerInterface;
1716
use Symfony\Component\Form\FormBuilderInterface;
1817
use Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationRequestHandler;
@@ -22,11 +21,6 @@
2221
*/
2322
class FormTypeHttpFoundationExtension extends AbstractTypeExtension
2423
{
25-
/**
26-
* @var BindRequestListener
27-
*/
28-
private $listener;
29-
3024
/**
3125
* @var RequestHandlerInterface
3226
*/
@@ -37,7 +31,6 @@ class FormTypeHttpFoundationExtension extends AbstractTypeExtension
3731
*/
3832
public function __construct(RequestHandlerInterface $requestHandler = null)
3933
{
40-
$this->listener = new BindRequestListener();
4134
$this->requestHandler = $requestHandler ?: new HttpFoundationRequestHandler();
4235
}
4336

@@ -46,7 +39,6 @@ public function __construct(RequestHandlerInterface $requestHandler = null)
4639
*/
4740
public function buildForm(FormBuilderInterface $builder, array $options)
4841
{
49-
$builder->addEventSubscriber($this->listener);
5042
$builder->setRequestHandler($this->requestHandler);
5143
}
5244

‎src/Symfony/Component/Form/FormEvents.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/FormEvents.php
-26Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
namespace Symfony\Component\Form;
1212

13-
use Symfony\Component\Form\Deprecated\FormEvents as Deprecated;
14-
1513
/**
1614
* @author Bernhard Schussek <bschussek@gmail.com>
1715
*/
@@ -73,30 +71,6 @@ final class FormEvents
7371
*/
7472
const POST_SET_DATA = 'form.post_set_data';
7573

76-
/**
77-
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
78-
* {@link PRE_SUBMIT} instead.
79-
*
80-
* @Event
81-
*/
82-
const PRE_BIND = Deprecated::PRE_BIND;
83-
84-
/**
85-
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
86-
* {@link SUBMIT} instead.
87-
*
88-
* @Event
89-
*/
90-
const BIND = Deprecated::BIND;
91-
92-
/**
93-
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
94-
* {@link POST_SUBMIT} instead.
95-
*
96-
* @Event
97-
*/
98-
const POST_BIND = Deprecated::POST_BIND;
99-
10074
private function __construct()
10175
{
10276
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.