From 95f10834d36e170037810aab6a553366c76e0441 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sat, 16 Mar 2019 11:50:43 +0100 Subject: [PATCH] pass container to functional views --- ipf/controller/function.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipf/controller/function.php b/ipf/controller/function.php index 598b37d..c80fd87 100644 --- a/ipf/controller/function.php +++ b/ipf/controller/function.php @@ -8,7 +8,7 @@ class IPF_Controller_Function extends IPF_Controller $callable = call_user_func($get_callable, $action); if ($callable !== null) - return call_user_func_array($callable, array($request, $matches)); + return call_user_func_array($callable, array($request, $matches, $this->container)); else throw new \Exception('Impossible to load view function: ' . $action . '.'); } -- 2.49.0