From de09bffd84fc2299eeca50c05998706eeef633ac Mon Sep 17 00:00:00 2001 From: jaredkipe Date: Sat, 2 Aug 2014 12:58:01 -0700 Subject: [PATCH] Update Controller to allow extension in handleAction() Controller's parent class (RequestHandler) has two extensions in its handleAction() method that are obscured by Controller's implementation. --- control/Controller.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/control/Controller.php b/control/Controller.php index cda3ea00c..c060af523 100644 --- a/control/Controller.php +++ b/control/Controller.php @@ -173,6 +173,8 @@ class Controller extends RequestHandler implements TemplateGlobalProvider { * If $Action isn't given, it will use "index" as a default. */ protected function handleAction($request, $action) { + $this->extend('beforeCallActionHandler', $request, $action); + foreach($request->latestParams() as $k => $v) { if($v || !isset($this->urlParams[$k])) $this->urlParams[$k] = $v; }