32 if (! $reflect->isAbstract () && $reflect->isSubclassOf ( RestBaseController::class )) {
33 $restAnnotsClass = Reflexion::getAnnotationClass (
$controllerClass,
"rest" );
34 if (\count ( $restAnnotsClass ) > 0) {
35 $routeAnnotsClass = Reflexion::getAnnotationClass (
$controllerClass,
"route" );
36 if (\count ( $routeAnnotsClass ) > 0) {
37 $this->route = $routeAnnotsClass [0]->path;
39 $this->resource = $this->
_getResourceName ( $config, $restAnnotsClass [0]->resource );
41 $methods = Reflexion::getMethods (
$controllerClass, \ReflectionMethod::IS_PUBLIC );
42 foreach ( $methods as $method ) {
43 $annots = Reflexion::getAnnotationsMethod (
$controllerClass, $method->name,
"authorization" );
44 if ($annots !==
false) {
45 $this->authorizationMethods [] = $method->name;