src/Control/RequestHandler.php
protected function definingClassForAction($actionOrigCasing)
    {
        $action = strtolower($actionOrigCasing);

        $definingClass = null;
        $insts = array_merge([$this], (array) $this->getExtensionInstances());
        foreach ($insts as $inst) {
            if (!method_exists($inst, $action)) {
                continue;
            }
            $r = new ReflectionClass(get_class($inst));
            $m = $r->getMethod($actionOrigCasing);
            return $m->getDeclaringClass()->getName();
        }
        return null;
    }
protected function definingClassForAction($actionOrigCasing)
    {
        $action = strtolower($actionOrigCasing);

        $definingClass = null;
        $insts = array_merge([$this], (array) $this->getExtensionInstances());
        foreach ($insts as $inst) {
            if (!method_exists($inst, $action)) {
                continue;
            }
            $r = new ReflectionClass(get_class($inst));
            $m = $r->getMethod($actionOrigCasing);
            return $m->getDeclaringClass()->getName();
        }
        return null;
    }
protected function definingClassForAction ( $ actionOrigCasing ) { $ action = strtolower ( $ actionOrigCasing ) ; $ definingClass = null ; $ insts = array_merge ( [ $ this ] , ( array ) $ this -> getExtensionInstances ( ) ) ; foreach ( $ insts as $ inst ) { if ( ! method_exists ( $ inst , $ action ) ) { continue ; } $ r = new ReflectionClass ( get_class ( $ inst ) ) ; $ m = $ r -> getMethod ( $ actionOrigCasing ) ; return $ m -> getDeclaringClass ( ) -> getName ( ) ; } return null ; }
Return the class that defines the given action, so that we know where to check allowed_actions.

@param string $actionOrigCasing
@return string
Return the class that defines the given action so that we know where to check allowed_actions .