Skip to content

Commit

Permalink
feature #13128 [Form] Removed deprecated form_enctype() (saro0h)
Browse files Browse the repository at this point in the history
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()
  • Loading branch information
fabpot committed Dec 30, 2014
2 parents e3872b9 + c6b049f commit b9f4425
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 34 deletions.
1 change: 0 additions & 1 deletion src/Symfony/Bridge/Twig/Extension/FormExtension.php
Expand Up @@ -61,7 +61,6 @@ public function getTokenParsers()
public function getFunctions()
{
return array(
new \Twig_SimpleFunction('form_enctype', null, array('node_class' => 'Symfony\Bridge\Twig\Node\FormEnctypeNode', 'is_safe' => array('html'))),
new \Twig_SimpleFunction('form_widget', null, array('node_class' => 'Symfony\Bridge\Twig\Node\SearchAndRenderBlockNode', 'is_safe' => array('html'))),
new \Twig_SimpleFunction('form_errors', null, array('node_class' => 'Symfony\Bridge\Twig\Node\SearchAndRenderBlockNode', 'is_safe' => array('html'))),
new \Twig_SimpleFunction('form_label', null, array('node_class' => 'Symfony\Bridge\Twig\Node\SearchAndRenderBlockNode', 'is_safe' => array('html'))),
Expand Down
29 changes: 0 additions & 29 deletions src/Symfony/Bridge/Twig/Node/FormEnctypeNode.php

This file was deleted.

Expand Up @@ -281,10 +281,6 @@
</form>
{%- endblock form_end %}

{% block form_enctype -%}
{% if multipart %}enctype="multipart/form-data"{% endif %}
{%- endblock form_enctype %}

{% block form_errors -%}
{% if errors|length > 0 -%}
<ul>
Expand Down

0 comments on commit b9f4425

Please sign in to comment.