public function getFunctions() { return [new Twig_SimpleFunction('debug', [$this, 'debug'], ['needs_context' => true, 'needs_environment' => true])]; }