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.
This commit is contained in:
jaredkipe 2014-08-02 12:58:01 -07:00 committed by Will Rossiter
parent 7484b4f5d9
commit de09bffd84

View File

@ -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;
}