Example #1
0
 public function getRouter()
 {
     if (!isset($this->router)) {
         $this->router = new Router();
         if (!empty(self::$routes)) {
             $this->router->routes += self::$routes;
         }
         $this->router->loadFile($this->app->config('routes', 'php'));
     }
     return $this->router;
 }