7

バンドル JMS 変換を使用しようとしていますが、このエラーが発生します。私の小枝のバージョンがバンドルのバージョンと同じではないためだと思いますか? 何をすべきか?

CRITICAL - Uncaught PHP Exception Twig_Error_Syntax: "The filter "truncate" does not exist in "...\vendor\jms\translation-bundle\JMS\TranslationBundle/Resources/views/Translate/messages.html.twig" at line 14" at ...\vendor\twig\twig\lib\Twig\ExpressionParser.php line 588 

composer.json での私の要件は次のとおりです。

 "require": {
        ...
        "twig/extensions": "~1.2.0",

JMS 変換のコンポーザには次のようなものがあります。

"conflict": {
    "twig/twig": "1.10.2"
},
"require-dev": {
    "symfony/twig-bundle": "*",

前もって感謝します!

4

4 に答える 4

0

symfony 4 では、twig extra https://twig.symfony.com/doc/2.x/filters/u.htmlを使用できます

于 2020-05-22T22:38:54.210 に答える