Esempio n. 1
0
 public static function initialize()
 {
     $constantMapping = (require_once Loader::APPPATH() . 'Config/Const.php');
     Kit::update(self::$constantMapping, $constantMapping);
     $constantMapping = (require_once Loader::APPPATH() . 'Config/Const-local.php');
     Kit::update(self::$constantMapping, $constantMapping);
     foreach (self::$constantMapping as $name => $value) {
         if (FALSE === defined($name)) {
             define($name, $value);
         }
     }
 }
Esempio n. 2
0
 public static function resolve($method, $url)
 {
     $Route = new Route\Route($method, $url);
     include Loader::APPPATH() . 'config/route.php';
     return $Route->result();
 }
Esempio n. 3
0
 /**
  * @param string $method
  * @param string $url
  * @return mixed
  */
 public static function resolve($method, $url)
 {
     $Router = new Router($method, $url);
     require Loader::APPPATH() . 'Config/Route.php';
     return $Router->result();
 }