/** * * @return ReflectionAnnotatedMethod */ protected function getReflectedController() { if ($this->reflectedController == NULL) { try { $this->reflectedController = new ReflectionAnnotatedMethod($this->controllerName, $this->controllerMethod); } catch (ReflectionException $e) { ApplicationHook::logError($e->getTraceAsString()); return NULL; } } return $this->reflectedController; }
/** * * @return ReflectionAnnotatedMethod */ protected function getReflectedController() { if ($this->reflectedController == NULL) { try { $this->reflectedController = new ReflectionAnnotatedMethod($this->controllerName, $this->controllerMethod); } catch (ReflectionException $e) { ApplicationHook::logError($this->controllerName . "." . $this->controllerMethod . " is NOT reflected!"); return NULL; } } return $this->reflectedController; }