Skip to content

Commit 7222de3

Browse files
committed
[Form] moved a deprecation notice
1 parent 9b1a0f7 commit 7222de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extension/HttpFoundation/EventListener/BindRequestListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Form\Extension\HttpFoundation\EventListener;
1313

14-
trigger_error('The '.__NAMESPACE__.'\BindRequestListener class is deprecated since version 2.3 and will be removed in 3.0. Pass the Request instance to the \Symfony\Component\Form\Form::handleRequest() method instead.', E_USER_DEPRECATED);
15-
1614
use Symfony\Component\Form\FormEvents;
1715
use Symfony\Component\Form\FormEvent;
1816
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
@@ -44,6 +42,8 @@ public function preBind(FormEvent $event)
4442
return;
4543
}
4644

45+
trigger_error('The '.__CLASS__.' class is deprecated since version 2.3 and will be removed in 3.0. Pass the Request instance to the \Symfony\Component\Form\Form::handleRequest() method instead.', E_USER_DEPRECATED);
46+
4747
// Uncomment this as soon as the deprecation note should be shown
4848
// trigger_error('Passing a Request instance to Form::submit() is deprecated since version 2.3 and will be disabled in 3.0. Call Form::process($request) instead.', E_USER_DEPRECATED);
4949

0 commit comments

Comments
 (0)