예제 #1
0
 public static function __callStatic($method, $args)
 {
     $registered = (include Config::container());
     if (in_array($method, array_keys($registered))) {
         if (is_callable($registered[$method])) {
             return call_user_func_array($registered[$method], $args);
         } else {
             return $registered[$method];
         }
     } else {
         throw new Exception("No registered method or object found", 1);
     }
 }