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 18
18
use CodeIgniter \Exceptions \PageNotFoundException ;
19
19
use CodeIgniter \HTTP \CLIRequest ;
20
20
use CodeIgniter \HTTP \DownloadResponse ;
21
+ use CodeIgniter \HTTP \Exceptions \RedirectException ;
21
22
use CodeIgniter \HTTP \IncomingRequest ;
22
23
use CodeIgniter \HTTP \RedirectResponse ;
23
24
use CodeIgniter \HTTP \Request ;
24
25
use CodeIgniter \HTTP \ResponseInterface ;
25
26
use CodeIgniter \HTTP \URI ;
26
- use CodeIgniter \Router \Exceptions \RedirectException ;
27
27
use CodeIgniter \Router \RouteCollectionInterface ;
28
28
use CodeIgniter \Router \Router ;
29
29
use Config \App ;
Original file line number Diff line number Diff line change 13
13
14
14
use CodeIgniter \Exceptions \PageNotFoundException ;
15
15
use CodeIgniter \Filters \Filters ;
16
- use CodeIgniter \Router \Exceptions \RedirectException ;
16
+ use CodeIgniter \HTTP \Exceptions \RedirectException ;
17
17
use CodeIgniter \Router \Router ;
18
18
use Config \Services ;
19
19
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 16
16
17
17
/**
18
18
* RedirectException
19
+ *
20
+ * @deprecated Use \CodeIgniter\HTTP\Exceptions\RedirectException instead
19
21
*/
20
22
class RedirectException extends Exception implements HTTPExceptionInterface
21
23
{
Original file line number Diff line number Diff line change 13
13
14
14
use Closure ;
15
15
use CodeIgniter \Exceptions \PageNotFoundException ;
16
+ use CodeIgniter \HTTP \Exceptions \RedirectException ;
16
17
use CodeIgniter \HTTP \Request ;
17
- use CodeIgniter \Router \Exceptions \RedirectException ;
18
18
use CodeIgniter \Router \Exceptions \RouterException ;
19
19
20
20
/**
Original file line number Diff line number Diff line change 12
12
namespace CodeIgniter \Test ;
13
13
14
14
use CodeIgniter \Events \Events ;
15
+ use CodeIgniter \HTTP \Exceptions \RedirectException ;
15
16
use CodeIgniter \HTTP \IncomingRequest ;
16
17
use CodeIgniter \HTTP \Request ;
17
18
use CodeIgniter \HTTP \URI ;
18
19
use CodeIgniter \HTTP \UserAgent ;
19
- use CodeIgniter \Router \Exceptions \RedirectException ;
20
- use CodeIgniter \Router \RouteCollection ;
21
20
use Config \Services ;
22
21
use Exception ;
23
22
use ReflectionException ;
Original file line number Diff line number Diff line change 12
12
namespace CodeIgniter \Test ;
13
13
14
14
use CodeIgniter \Events \Events ;
15
+ use CodeIgniter \HTTP \Exceptions \RedirectException ;
15
16
use CodeIgniter \HTTP \IncomingRequest ;
16
17
use CodeIgniter \HTTP \Request ;
17
18
use CodeIgniter \HTTP \URI ;
18
- use CodeIgniter \Router \Exceptions \RedirectException ;
19
- use CodeIgniter \Router \RouteCollection ;
20
19
use Config \App ;
21
20
use Config \Services ;
22
21
use Exception ;
Original file line number Diff line number Diff line change 13
13
14
14
use CodeIgniter \Config \Services ;
15
15
use CodeIgniter \Exceptions \PageNotFoundException ;
16
+ use CodeIgniter \HTTP \Exceptions \RedirectException ;
16
17
use CodeIgniter \HTTP \IncomingRequest ;
17
- use CodeIgniter \Router \Exceptions \RedirectException ;
18
18
use CodeIgniter \Router \Exceptions \RouterException ;
19
19
use CodeIgniter \Test \CIUnitTestCase ;
20
20
use Config \Modules ;
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ Deprecations
143
143
``ExceptionHandler ``.
144
144
- **Autoloader: ** ``Autoloader::sanitizeFilename() `` is deprecated.
145
145
- **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.
146
147
147
148
Bugs Fixed
148
149
**********
You can’t perform that action at this time.
0 commit comments