Skip to content

Commit be3d32e

Browse files
committed
test: use Services::superglobals()
1 parent 11476e7 commit be3d32e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/_support/Config/Services.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use CodeIgniter\HTTP\SiteURIFactory;
1515
use CodeIgniter\HTTP\URI;
16-
use CodeIgniter\Superglobals;
1716
use Config\App;
1817
use Config\Services as BaseServices;
1918
use RuntimeException;
@@ -46,7 +45,7 @@ public static function uri(?string $uri = null, bool $getShared = true)
4645

4746
if ($uri === null) {
4847
$appConfig = config(App::class);
49-
$factory = new SiteURIFactory($appConfig, new Superglobals());
48+
$factory = new SiteURIFactory($appConfig, Services::superglobals());
5049

5150
return $factory->createFromGlobals();
5251
}

0 commit comments

Comments
 (0)