diff --git a/src/Bridges/ApplicationLatte/Template.php b/src/Bridges/ApplicationLatte/Template.php index bda6e7d91..f6d1441ce 100644 --- a/src/Bridges/ApplicationLatte/Template.php +++ b/src/Bridges/ApplicationLatte/Template.php @@ -92,6 +92,17 @@ public function addFilter(?string $name, callable $callback) } + /** + * Registers run-time function. + * @return static + */ + public function addFunction(string $name, callable $callback) + { + $this->latte->addFunction($name, $callback); + return $this; + } + + /** * Sets translate adapter. * @return static