]> git.andy128k.dev Git - ipf.git/commitdiff
pass container to functional views
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 16 Mar 2019 10:50:43 +0000 (11:50 +0100)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 16 Mar 2019 10:50:43 +0000 (11:50 +0100)
ipf/controller/function.php

index 598b37db1297ff0caa7e2f4ca73aa94f5a9c0778..c80fd8779d0b52cd9473757863cb899ece83467c 100644 (file)
@@ -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 . '.');
     }