|
31 | 31 | use CodeIgniter\Router\Router; |
32 | 32 | use Config\App; |
33 | 33 | use Config\Cache; |
34 | | -use Config\Feature; |
35 | 34 | use Config\Kint as KintConfig; |
36 | 35 | use Config\Services; |
37 | 36 | use Exception; |
38 | | -use Kint; |
| 37 | +use Kint\Kint; |
39 | 38 | use Kint\Renderer\CliRenderer; |
40 | 39 | use Kint\Renderer\RichRenderer; |
41 | 40 | use Locale; |
@@ -358,7 +357,7 @@ public function run(?RouteCollectionInterface $routes = null, bool $returnRespon |
358 | 357 | $this->spoofRequestMethod(); |
359 | 358 |
|
360 | 359 | try { |
361 | | - $this->response = $this->handleRequest($routes, config(Cache::class), $returnResponse); |
| 360 | + $this->response = $this->handleRequest($routes, config('Cache'), $returnResponse); |
362 | 361 | } catch (ResponsableInterface|DeprecatedRedirectException $e) { |
363 | 362 | $this->outputBufferingEnd(); |
364 | 363 | if ($e instanceof DeprecatedRedirectException) { |
@@ -458,7 +457,7 @@ protected function handleRequest(?RouteCollectionInterface $routes, Cache $cache |
458 | 457 | // If any filters were specified within the routes file, |
459 | 458 | // we need to ensure it's active for the current request |
460 | 459 | if ($routeFilter !== null) { |
461 | | - $multipleFiltersEnabled = config(Feature::class)->multipleFilters ?? false; |
| 460 | + $multipleFiltersEnabled = config('Feature')->multipleFilters ?? false; |
462 | 461 | if ($multipleFiltersEnabled) { |
463 | 462 | $filters->enableFilters($routeFilter, 'before'); |
464 | 463 | $filters->enableFilters($routeFilter, 'after'); |
@@ -829,7 +828,7 @@ protected function tryToRouteIt(?RouteCollectionInterface $routes = null) |
829 | 828 | $this->benchmark->stop('routing'); |
830 | 829 |
|
831 | 830 | // for backward compatibility |
832 | | - $multipleFiltersEnabled = config(Feature::class)->multipleFilters ?? false; |
| 831 | + $multipleFiltersEnabled = config('Feature')->multipleFilters ?? false; |
833 | 832 | if (! $multipleFiltersEnabled) { |
834 | 833 | return $this->router->getFilter(); |
835 | 834 | } |
@@ -970,7 +969,7 @@ protected function display404errors(PageNotFoundException $e) |
970 | 969 |
|
971 | 970 | unset($override); |
972 | 971 |
|
973 | | - $cacheConfig = config(Cache::class); |
| 972 | + $cacheConfig = config('Cache'); |
974 | 973 | $this->gatherOutput($cacheConfig, $returned); |
975 | 974 |
|
976 | 975 | return $this->response; |
|
0 commit comments