From dd5064578ea1b0d82523a222f2dde4b2766d6f80 Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Sat, 3 Oct 2015 00:55:12 +0200 Subject: [PATCH] [Form] remove obsolete deprecation comments --- src/Symfony/Bridge/Twig/Node/FormEnctypeNode.php | 7 ------- .../HttpFoundation/EventListener/BindRequestListener.php | 3 --- 2 files changed, 10 deletions(-) diff --git a/src/Symfony/Bridge/Twig/Node/FormEnctypeNode.php b/src/Symfony/Bridge/Twig/Node/FormEnctypeNode.php index 0114b354d8..fc2e53b530 100644 --- a/src/Symfony/Bridge/Twig/Node/FormEnctypeNode.php +++ b/src/Symfony/Bridge/Twig/Node/FormEnctypeNode.php @@ -19,11 +19,4 @@ namespace Symfony\Bridge\Twig\Node; */ class FormEnctypeNode extends SearchAndRenderBlockNode { - public function compile(\Twig_Compiler $compiler) - { - parent::compile($compiler); - - // Uncomment this as soon as the deprecation note should be shown - // $compiler->write('trigger_error(\'The helper form_enctype(form) is deprecated since version 2.3 and will be removed in 3.0. Use form_start(form) instead.\', E_USER_DEPRECATED)'); - } } diff --git a/src/Symfony/Component/Form/Extension/HttpFoundation/EventListener/BindRequestListener.php b/src/Symfony/Component/Form/Extension/HttpFoundation/EventListener/BindRequestListener.php index 2489cf371c..68712985b3 100644 --- a/src/Symfony/Component/Form/Extension/HttpFoundation/EventListener/BindRequestListener.php +++ b/src/Symfony/Component/Form/Extension/HttpFoundation/EventListener/BindRequestListener.php @@ -42,9 +42,6 @@ class BindRequestListener implements EventSubscriberInterface return; } - // Uncomment this as soon as the deprecation note should be shown - // 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); - $name = $form->getConfig()->getName(); $default = $form->getConfig()->getCompound() ? array() : null;