From: Andrey Kutejko Date: Sat, 16 Mar 2019 10:50:43 +0000 (+0100) Subject: pass container to functional views X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=95f10834d36e170037810aab6a553366c76e0441;p=ipf.git pass container to functional views --- 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 . '.'); }