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); } } }
public static function resolve($method, $url) { $Route = new Route\Route($method, $url); include Loader::APPPATH() . 'config/route.php'; return $Route->result(); }
/** * @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(); }