callback = $callback; } public function filter($code, \Smarty\Template $template) { return call_user_func($this->callback, $code, $template); } }