From 527bdccfa9ed4a22f29b7839a9c055cffb1efb5d Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 12 Mar 2020 08:49:48 +0700 Subject: [PATCH] use existing $routes var from APPPATH . "Config/Routes.php" --- system/Test/bootstrap.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/system/Test/bootstrap.php b/system/Test/bootstrap.php index 83d62eaad9b7..4a217fef12e7 100644 --- a/system/Test/bootstrap.php +++ b/system/Test/bootstrap.php @@ -59,7 +59,5 @@ class_alias('Config\Services', 'CodeIgniter\Services'); // Register the loader with the SPL autoloader stack. $loader->register(); -$routes = \Config\Services::routes(); -$routes->getRoutes('*'); - require_once APPPATH . 'Config/Routes.php'; +$routes->getRoutes('*');