public function run() { // Getting an instance of CustomRoutingProvider. $router = Injector::call('\\Nanozen\\Providers\\CustomRouting\\CustomRoutingProvider'); // Setting up the routes. $this->setupRoutes($router); // Invoking the router. $router->invoke(); }