Beispiel #1
0
 /**
  * @param $processor
  * @param $method
  *
  * @return mixed
  */
 private function invoke_controller($processor, $method)
 {
     // determine if the controller implements a router
     if (method_exists($processor, 'routeTo')) {
         // routing controller - send the $method to the controller router
         $result = $this->forge->callWithDependencyInjection([$processor, 'routeTo'], [$method]);
     } else {
         // standard controller
         $result = $this->forge->callWithDependencyInjection([$processor, $method]);
     }
     return $result;
 }