public function findMethod($action, $method = null) { if (is_array($action)) { foreach ($action as $realAction => $realMethod) { $this->action($realAction)->findMethod($realMethod); } return; } $this->action($action)->findMethod($method); }