summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-11-29 16:51:36 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-11-29 16:56:44 +0100
commitf8e1f8508957dfb2f4db1485f3e17358f9a72a31 (patch)
tree5893320ade6b75bde86d116ed68f55f02d7f60e1 /src
parenta1e1d91a640995f40181f0b720f48d971b735b76 (diff)
Removed not used {trans} twig token
Diffstat (limited to 'src')
-rw-r--r--src/Renderer/Twig/Extensions/Translation.php19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/Renderer/Twig/Extensions/Translation.php b/src/Renderer/Twig/Extensions/Translation.php
index 3e6f30b4..929310a1 100644
--- a/src/Renderer/Twig/Extensions/Translation.php
+++ b/src/Renderer/Twig/Extensions/Translation.php
@@ -4,27 +4,20 @@ namespace Engelsystem\Renderer\Twig\Extensions;
use Engelsystem\Helpers\Translation\Translator;
use Twig_Extension as TwigExtension;
-use Twig_Extensions_TokenParser_Trans as TranslationTokenParser;
use Twig_Filter as TwigFilter;
use Twig_Function as TwigFunction;
-use Twig_TokenParserInterface as TwigTokenParser;
class Translation extends TwigExtension
{
/** @var Translator */
protected $translator;
- /** @var TranslationTokenParser */
- protected $tokenParser;
-
/**
- * @param Translator $translator
- * @param TranslationTokenParser $tokenParser
+ * @param Translator $translator
*/
- public function __construct(Translator $translator, TranslationTokenParser $tokenParser)
+ public function __construct(Translator $translator)
{
$this->translator = $translator;
- $this->tokenParser = $tokenParser;
}
/**
@@ -47,12 +40,4 @@ class Translation extends TwigExtension
new TwigFunction('_e', [$this->translator, 'translatePlural']),
];
}
-
- /**
- * @return TwigTokenParser[]
- */
- public function getTokenParsers()
- {
- return [$this->tokenParser];
- }
}