tokenParser = $tokenParser; } /** * {@inheritdoc} */ public function getTokenParsers() { return array( $this->tokenParser, ); } /** * {@inheritdoc} */ public function getName() { return self::TWIG_TAG_INI; } /** * {@inheritdoc} */ public function traduzir() { $params = func_get_args(); $body = array_shift($params); /** @var \Phacil\Framework\Translate */ $trans = \Phacil\Framework\Registry::getInstance(\Phacil\Framework\Translate::class); echo ($trans->translation($body)); } /** * {@inheritdoc} */ static public function translate() { $params = func_get_args(); $body = array_shift($params); /** @var \Phacil\Framework\Translate */ $trans = \Phacil\Framework\Registry::getInstance(\Phacil\Framework\Translate::class); echo ($trans->translation($body)); } }