8000 feature #13128 [Form] Removed deprecated form_enctype() (saro0h) · symfony/symfony@b9f4425 · GitHub
[go: up one dir, main page]

Skip to content

Commit b9f4425

Browse files
committed
feature #13128 [Form] Removed deprecated form_enctype() (saro0h)
This PR was merged into the 3.0-dev branch. Discussion ---------- [Form] Removed deprecated form_enctype() | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | ~ Commits ------- c6b049f [Form] Removed deprecated form_enctype()
2 parents e3872b9 + c6b049f commit b9f4425

File tree

3 files changed

+0
-34
lines changed

3 files changed

+0
-34
lines changed

src/Symfony/Bridge/Twig/Extension/FormExtension.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ public function getTokenParsers()
6161
public function getFunctions()
6262
{
6363
return array(
64-
new \Twig_SimpleFunction('form_enctype', null, array('node_class' => 'Symfony\Bridge\Twig\Node\FormEnctypeNode', 'is_safe' => array('html'))),
6564
new \Twig_SimpleFunction('form_widget', null, array('node_class' => 'Symfony\Bridge\Twig\Node\SearchAndRenderBlockNode', 'is_safe' => array('html'))),
6665
new \Twig_SimpleFunction('form_errors', null, array('node_class' => 'Symfony\Bridge\Twig\Node\SearchAndRenderBlockNode', 'is_safe' => array('html'))),
6766
new \Twig_SimpleFunction('form_label', null, array('node_class' => 'Symfony\Bridge\Twig\Node\SearchAndRenderBlockNode', 'is_safe' => array('html'))),

src/Symfony/Bridge/Twig/Node/FormEnctypeNode.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,6 @@
281281
</form>
282282
{%- endblock form_end %}
283283

284-
{% block form_enctype -%}
285-
{% if multipart %}enctype="multipart/form-data"{% endif %}
286-
{%- endblock form_enctype %}
287-
288284
{% block form_errors -%}
289285
{% if errors|length > 0 -%}
290286
<ul>

0 commit comments

Comments
 (0)
0