17 $this->authorizationMethods=[ ];
23 if (!$reflect->isAbstract() && $reflect->isSubclassOf(
"Ubiquity\\controllers\\rest\\RestController")) {
25 if (\
sizeof($restAnnotsClass) > 0) {
27 if (\
sizeof($routeAnnotsClass) > 0) {
28 $this->route=$routeAnnotsClass[0]->path;
30 $this->resource=$this->
_getResourceName($config, $restAnnotsClass[0]->resource);
33 foreach ( $methods as $method ) {
35 if ($annots !==
false) {
36 $this->authorizationMethods[]=$method->name;
44 $modelsNS=$config[
"mvcNS"][
"models"];
static getAnnotationsMethod($class, $method, $annotation)
parse($controllerClass, $config)
static getAnnotationClass($class, $annotation)
_getResourceName($config, $name)
static getClassNameWithNS($defaultNS, $name)
static getMethods($instance, $filter=null)
static cleanClassname($classname)