Skip to content

Commit 89b0323

Browse files
committed
refactor: make determinePath() deprecated
1 parent 9545ed9 commit 89b0323

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
@@ -416,7 +416,7 @@ protected function handleRequest(?RouteCollectionInterface $routes, Cache $cache
416416

417417
$routeFilters = $this->tryToRouteIt($routes);
418418

419-
$uri = $this->determinePath();
419+
$uri = $this->request->getPath();
420420

421421
if ($this->enableFilters) {
422422
// Start up the filters
@@ -782,14 +782,14 @@ protected function tryToRouteIt(?RouteCollectionInterface $routes = null)
782782
// $routes is defined in Config/Routes.php
783783
$this->router = Services::router($routes, $this->request);
784784

785-
$path = $this->determinePath();
785+
$uri = $this->request->getPath();
786786

787787
$this->benchmark->stop('bootstrap');
788788
$this->benchmark->start('routing');
789789

790790
$this->outputBufferingStart();
791791

792-
$this->controller = $this->router->handle($path);
792+
$this->controller = $this->router->handle($uri);
793793
$this->method = $this->router->methodName();
794794

795795
// If a {locale} segment was matched in the final route,
@@ -808,6 +808,8 @@ protected function tryToRouteIt(?RouteCollectionInterface $routes = null)
808808
* on the CLI/IncomingRequest path.
809809
*
810810
* @return string
811+
*
812+
* @deprecated 4.5.0 No longer used.
811813
*/
812814
protected function determinePath()
813815
{

0 commit comments

Comments
 (0)