File tree Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 15
15
16
16
use CodeIgniter \Format \Format ;
17
17
use CodeIgniter \Format \FormatterInterface ;
18
+ use CodeIgniter \HTTP \CLIRequest ;
18
19
use CodeIgniter \HTTP \IncomingRequest ;
19
- use CodeIgniter \HTTP \RequestInterface ;
20
20
use CodeIgniter \HTTP \ResponseInterface ;
21
21
22
22
/**
23
23
* Provides common, more readable, methods to provide
24
24
* consistent HTTP responses under a variety of common
25
25
* situations when working as an API.
26
26
*
27
- * @property RequestInterface $request
28
- * @property ResponseInterface $response
29
- * @property bool $stringAsHtml Whether to treat string data as HTML in JSON response.
30
- * Setting `true` is only for backward compatibility.
27
+ * @property CLIRequest|IncomingRequest $request
28
+ * @property ResponseInterface $response
29
+ * @property bool $stringAsHtml Whether to treat string data as HTML in JSON response.
30
+ * Setting `true` is only for backward compatibility.
31
31
*/
32
32
trait ResponseTrait
33
33
{
Original file line number Diff line number Diff line change 13
13
14
14
namespace CodeIgniter \Debug ;
15
15
16
+ use CodeIgniter \HTTP \CLIRequest ;
17
+ use CodeIgniter \HTTP \IncomingRequest ;
16
18
use CodeIgniter \HTTP \RequestInterface ;
17
19
use CodeIgniter \HTTP \ResponseInterface ;
18
20
use Config \Exceptions as ExceptionsConfig ;
@@ -54,6 +56,8 @@ public function __construct(ExceptionsConfig $config)
54
56
/**
55
57
* The main entry point into the handler.
56
58
*
59
+ * @param CLIRequest|IncomingRequest $request
60
+ *
57
61
* @return void
58
62
*/
59
63
abstract public function handle (
Original file line number Diff line number Diff line change 15
15
16
16
use CodeIgniter \API \ResponseTrait ;
17
17
use CodeIgniter \Exceptions \PageNotFoundException ;
18
+ use CodeIgniter \HTTP \CLIRequest ;
18
19
use CodeIgniter \HTTP \Exceptions \HTTPException ;
19
20
use CodeIgniter \HTTP \IncomingRequest ;
20
21
use CodeIgniter \HTTP \RequestInterface ;
@@ -41,6 +42,8 @@ final class ExceptionHandler extends BaseExceptionHandler implements ExceptionHa
41
42
42
43
/**
43
44
* Determines the correct way to display the error.
45
+ *
46
+ * @param CLIRequest|IncomingRequest $request
44
47
*/
45
48
public function handle (
46
49
Throwable $ exception ,
Original file line number Diff line number Diff line change 13
13
14
14
namespace CodeIgniter \Debug ;
15
15
16
+ use CodeIgniter \HTTP \CLIRequest ;
17
+ use CodeIgniter \HTTP \IncomingRequest ;
16
18
use CodeIgniter \HTTP \RequestInterface ;
17
19
use CodeIgniter \HTTP \ResponseInterface ;
18
20
use Throwable ;
@@ -21,6 +23,8 @@ interface ExceptionHandlerInterface
21
23
{
22
24
/**
23
25
* Determines the correct way to display the error.
26
+ *
27
+ * @param CLIRequest|IncomingRequest $request
24
28
*/
25
29
public function handle (
26
30
Throwable $ exception ,
You can’t perform that action at this time.
0 commit comments