Skip to content

Commit f2806b3

Browse files
committed
refactor: make determinePath() deprecated
1 parent 3519bdd commit f2806b3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

system/CodeIgniter.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ protected function handleRequest(?RouteCollectionInterface $routes, Cache $cache
414414

415415
$routeFilters = $this->tryToRouteIt($routes);
416416

417-
$uri = $this->determinePath();
417+
$uri = $this->request->getPath();
418418

419419
if ($this->enableFilters) {
420420
// Start up the filters
@@ -780,14 +780,14 @@ protected function tryToRouteIt(?RouteCollectionInterface $routes = null)
780780
// $routes is defined in Config/Routes.php
781781
$this->router = Services::router($routes, $this->request);
782782

783-
$path = $this->determinePath();
783+
$uri = $this->request->getPath();
784784

785785
$this->benchmark->stop('bootstrap');
786786
$this->benchmark->start('routing');
787787

788788
$this->outputBufferingStart();
789789

790-
$this->controller = $this->router->handle($path);
790+
$this->controller = $this->router->handle($uri);
791791
$this->method = $this->router->methodName();
792792

793793
// If a {locale} segment was matched in the final route,
@@ -806,6 +806,8 @@ protected function tryToRouteIt(?RouteCollectionInterface $routes = null)
806806
* on the CLI/IncomingRequest path.
807807
*
808808
* @return string
809+
*
810+
* @deprecated 4.5.0 No longer used.
809811
*/
810812
protected function determinePath()
811813
{

0 commit comments

Comments
 (0)