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

[3.0][Form] Removed depracted events PRE_BIND, BIND and POST_BIND #13122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 3, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions 28 src/Symfony/Component/Form/Deprecated/FormEvents.php

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
namespace Symfony\Component\Form\Extension\HttpFoundation\Type;

use Symfony\Component\Form\AbstractTypeExtension;
use Symfony\Component\Form\Extension\HttpFoundation\EventListener\BindRequestListener;
use Symfony\Component\Form\RequestHandlerInterface;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationRequestHandler;
Expand All @@ -22,11 +21,6 @@
*/
class FormTypeHttpFoundationExtension extends AbstractTypeExtension
{
/**
* @var BindRequestListener
*/
private $listener;

/**
* @var RequestHandlerInterface
*/
Expand All @@ -37,7 +31,6 @@ class FormTypeHttpFoundationExtension extends AbstractTypeExtension
*/
public function __construct(RequestHandlerInterface $requestHandler = null)
{
$this->listener = new BindRequestListener();
$this->requestHandler = $requestHandler ?: new HttpFoundationRequestHandler();
}

Expand All @@ -46,7 +39,6 @@ public function __construct(RequestHandlerInterface $requestHandler = null)
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->addEventSubscriber($this->listener);
$builder->setRequestHandler($this->requestHandler);
}

Expand Down
26 changes: 0 additions & 26 deletions 26 src/Symfony/Component/Form/FormEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

namespace Symfony\Component\Form;

use Symfony\Component\Form\Deprecated\FormEvents as Deprecated;

/**
* @author Bernhard Schussek <bschussek@gmail.com>
*/
Expand Down Expand Up @@ -73,30 +71,6 @@ final class FormEvents
*/
const POST_SET_DATA = 'form.post_set_data';

/**
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
* {@link PRE_SUBMIT} instead.
*
* @Event
*/
const PRE_BIND = Deprecated::PRE_BIND;

/**
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
* {@link SUBMIT} instead.
*
* @Event
*/
const BIND = Deprecated::BIND;

/**
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
* {@link POST_SUBMIT} instead.
*
* @Event
*/
const POST_BIND = Deprecated::POST_BIND;

private function __construct()
{
}
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.