Skip to content

Commit 0cd491c

Browse files
committed
Revert RedirectException change
1 parent 65cc1f4 commit 0cd491c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

system/CodeIgniter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
namespace CodeIgniter;
3939

4040
use Closure;
41-
use CodeIgniter\Filters\Exceptions\FilterException;
4241
use CodeIgniter\HTTP\DownloadResponse;
4342
use CodeIgniter\HTTP\RedirectResponse;
4443
use CodeIgniter\HTTP\Request;
@@ -50,6 +49,7 @@
5049
use CodeIgniter\Events\Events;
5150
use CodeIgniter\HTTP\Response;
5251
use CodeIgniter\HTTP\CLIRequest;
52+
use CodeIgniter\Router\Exceptions\RedirectException;
5353
use CodeIgniter\Router\RouteCollectionInterface;
5454
use CodeIgniter\Exceptions\PageNotFoundException;
5555
use Exception;
@@ -209,7 +209,7 @@ public function initialize()
209209
* @param boolean $returnResponse
210210
*
211211
* @return boolean|\CodeIgniter\HTTP\RequestInterface|\CodeIgniter\HTTP\Response|\CodeIgniter\HTTP\ResponseInterface|mixed
212-
* @throws \CodeIgniter\Filters\Exceptions\FilterException
212+
* @throws \CodeIgniter\Router\Exceptions\RedirectException
213213
* @throws \Exception
214214
*/
215215
public function run(RouteCollectionInterface $routes = null, bool $returnResponse = false)
@@ -244,7 +244,7 @@ public function run(RouteCollectionInterface $routes = null, bool $returnRespons
244244
{
245245
return $this->handleRequest($routes, $cacheConfig, $returnResponse);
246246
}
247-
catch (FilterException $e)
247+
catch (RedirectException $e)
248248
{
249249
$logger = Services::logger();
250250
$logger->info('REDIRECTED ROUTE at ' . $e->getMessage());

0 commit comments

Comments
 (0)