Php Symfony2细枝扩展|传输过滤器错误

Php Symfony2细枝扩展|传输过滤器错误,php,exception,symfony,twig,translate,Php,Exception,Symfony,Twig,Translate,最近,我用composer更新了我的项目。 我不知道问题是在更新之后还是之前产生的,但错误的是,这是更新日志: - Removing twig/twig (v1.14.1) - Installing twig/twig (v1.14.2) Downloading: 100% - Removing symfony/symfony (v2.2.9) - Installing symfony/symfony (v2.2.10) Downloading

最近,我用composer更新了我的项目。 我不知道问题是在更新之后还是之前产生的,但错误的是,这是更新日志:

  - Removing twig/twig (v1.14.1)
  - Installing twig/twig (v1.14.2)
    Downloading: 100%         

  - Removing symfony/symfony (v2.2.9)
  - Installing symfony/symfony (v2.2.10)
    Downloading: 100%         

  - Removing doctrine/dbal (v2.4.0)
  - Installing doctrine/dbal (v2.4.1)
    Downloading: 100%         

  - Removing doctrine/orm (v2.4.0)
  - Installing doctrine/orm (v2.4.1)
    Downloading: 100%         

  - Removing monolog/monolog (1.6.0)
  - Installing monolog/monolog (1.7.0)
    Downloading: 100%         

  - Removing jms/metadata (1.4.2)
  - Installing jms/metadata (1.5.0)
    Downloading: 100%         

  - Removing gedmo/doctrine-extensions (v2.3.7)
  - Installing gedmo/doctrine-extensions (v2.3.8)
    Downloading: 100%         

  - Updating friendsofsymfony/message-bundle dev-master (d5b40ed => 74f62b0)
    Checking out 74f62b094a37bfcea96e812de0610b96ba412628

  - Updating stfalcon/tinymce-bundle dev-master (4cfe656 => 3205116)
    Checking out 32051165ccb6bde327ec121b3f294d807ceb427e
这就是错误: 当细枝模板文件使用trans扩展名时,我得到一个错误。 例如,此FOSUserBundle原始文件存在错误:

{% block fos_user_content %}
{% if error %}
    <div>{{ error|trans }}</div>
{% endif %}

<form action="{{ path("fos_user_security_check") }}" method="post">
    <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />

    <label for="username">{{ 'security.login.username'|trans }}</label>
    <input type="text" id="username" name="_username" value="{{ last_username }}" required="required" />

    <label for="password">{{ 'security.login.password'|trans }}</label>
    <input type="password" id="password" name="_password" required="required" />

    <input type="checkbox" id="remember_me" name="_remember_me" value="on" />
    <label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>

    <input type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}" />
</form>
{% endblock fos_user_content %}
关于信息,这是“form_div_layout.html.twig”中的第235行:

{{label}trans({},translation_domain)}
此错误与使用FOSUserBundle的登录表单和表单呈现的消息相同。 我已清除缓存,手动删除缓存文件夹内容,我再次收到此错误

有人有主意吗

{% block fos_user_content %}
    {% if error %}
        <div>{{ error|trans }}</div>
    {% endif %}

    <form action="{{ path("fos_user_security_check") }}" method="post">
        <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />

        <label for="username">Nom d'utilisateur :</label>
        <input type="text" id="username" name="_username" value="{{ last_username }}" required="required" />

        <label for="password">Mot de passe :</label>
        <input type="password" id="password" name="_password" required="required" />

        <input type="checkbox" id="remember_me" name="_remember_me" value="on" />
        <label for="remember_me">Se souvenir de moi</label>

        <input type="submit" id="_submit" name="_submit" value="connexion" />
    </form>
{% endblock fos_user_content %}
An exception has been thrown during the rendering of a template ("") in form_div_layout.html.twig at line 235.
    <label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>{{ label|trans({}, translation_domain) }}</label>