File tree Expand file tree Collapse file tree 9 files changed +37
-8
lines changed
Commands/Utilities/Routes
user_guide_src/source/changelogs Expand file tree Collapse file tree 9 files changed +37
-8
lines changed Original file line number Diff line number Diff line change 1818use CodeIgniter \Exceptions \PageNotFoundException ;
1919use CodeIgniter \HTTP \CLIRequest ;
2020use CodeIgniter \HTTP \DownloadResponse ;
21+ use CodeIgniter \HTTP \Exceptions \RedirectException ;
2122use CodeIgniter \HTTP \IncomingRequest ;
2223use CodeIgniter \HTTP \RedirectResponse ;
2324use CodeIgniter \HTTP \Request ;
2425use CodeIgniter \HTTP \ResponseInterface ;
2526use CodeIgniter \HTTP \URI ;
26- use CodeIgniter \Router \Exceptions \RedirectException ;
2727use CodeIgniter \Router \RouteCollectionInterface ;
2828use CodeIgniter \Router \Router ;
2929use Config \App ;
Original file line number Diff line number Diff line change 1313
1414use CodeIgniter \Exceptions \PageNotFoundException ;
1515use CodeIgniter \Filters \Filters ;
16- use CodeIgniter \Router \Exceptions \RedirectException ;
16+ use CodeIgniter \HTTP \Exceptions \RedirectException ;
1717use CodeIgniter \Router \Router ;
1818use Config \Services ;
1919
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /**
4+ * This file is part of CodeIgniter 4 framework.
5+ *
6+ * (c) CodeIgniter Foundation <[email protected] > 7+ *
8+ * For the full copyright and license information, please view
9+ * the LICENSE file that was distributed with this source code.
10+ */
11+
12+ namespace CodeIgniter \HTTP \Exceptions ;
13+
14+ use CodeIgniter \Exceptions \HTTPExceptionInterface ;
15+ use Exception ;
16+
17+ /**
18+ * RedirectException
19+ */
20+ class RedirectException extends Exception implements HTTPExceptionInterface
21+ {
22+ /**
23+ * HTTP status code for redirects
24+ *
25+ * @var int
26+ */
27+ protected $ code = 302 ;
28+ }
Original file line number Diff line number Diff line change 1616
1717/**
1818 * RedirectException
19+ *
20+ * @deprecated Use \CodeIgniter\HTTP\Exceptions\RedirectException instead
1921 */
2022class RedirectException extends Exception implements HTTPExceptionInterface
2123{
Original file line number Diff line number Diff line change 1313
1414use Closure ;
1515use CodeIgniter \Exceptions \PageNotFoundException ;
16+ use CodeIgniter \HTTP \Exceptions \RedirectException ;
1617use CodeIgniter \HTTP \Request ;
17- use CodeIgniter \Router \Exceptions \RedirectException ;
1818use CodeIgniter \Router \Exceptions \RouterException ;
1919
2020/**
Original file line number Diff line number Diff line change 1212namespace CodeIgniter \Test ;
1313
1414use CodeIgniter \Events \Events ;
15+ use CodeIgniter \HTTP \Exceptions \RedirectException ;
1516use CodeIgniter \HTTP \IncomingRequest ;
1617use CodeIgniter \HTTP \Request ;
1718use CodeIgniter \HTTP \URI ;
1819use CodeIgniter \HTTP \UserAgent ;
19- use CodeIgniter \Router \Exceptions \RedirectException ;
20- use CodeIgniter \Router \RouteCollection ;
2120use Config \Services ;
2221use Exception ;
2322use ReflectionException ;
Original file line number Diff line number Diff line change 1212namespace CodeIgniter \Test ;
1313
1414use CodeIgniter \Events \Events ;
15+ use CodeIgniter \HTTP \Exceptions \RedirectException ;
1516use CodeIgniter \HTTP \IncomingRequest ;
1617use CodeIgniter \HTTP \Request ;
1718use CodeIgniter \HTTP \URI ;
18- use CodeIgniter \Router \Exceptions \RedirectException ;
19- use CodeIgniter \Router \RouteCollection ;
2019use Config \App ;
2120use Config \Services ;
2221use Exception ;
Original file line number Diff line number Diff line change 1313
1414use CodeIgniter \Config \Services ;
1515use CodeIgniter \Exceptions \PageNotFoundException ;
16+ use CodeIgniter \HTTP \Exceptions \RedirectException ;
1617use CodeIgniter \HTTP \IncomingRequest ;
17- use CodeIgniter \Router \Exceptions \RedirectException ;
1818use CodeIgniter \Router \Exceptions \RouterException ;
1919use CodeIgniter \Test \CIUnitTestCase ;
2020use Config \Modules ;
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ Deprecations
143143 ``ExceptionHandler ``.
144144- **Autoloader: ** ``Autoloader::sanitizeFilename() `` is deprecated.
145145- **CodeIgniter: ** ``CodeIgniter::$returnResponse `` property is deprecated. No longer used.
146+ - **RedirectException: ** ``\CodeIgniter\Router\Exceptions\RedirectException `` is deprecated. Use \C odeIgniter\H TTP\E xceptions\R edirectException instead.
146147
147148Bugs Fixed
148149**********
You can’t perform that action at this time.
0 commit comments