File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33namespace CodeIgniter \Shield \Authentication ;
44
5- use CodeIgniter \HTTP \Exceptions \HTTPException ;
6- use Exception ;
5+ use CodeIgniter \Shield \Exceptions \HTTPException ;
76
8- class AuthenticationException extends Exception
7+ class AuthenticationException extends HTTPException
98{
109 protected $ code = 403 ;
1110
Original file line number Diff line number Diff line change 33namespace CodeIgniter \Shield \Authentication \Passwords ;
44
55use CodeIgniter \Config \Services ;
6- use CodeIgniter \HTTP \Exceptions \HTTPException ;
76use CodeIgniter \Shield \Authentication \AuthenticationException ;
87use CodeIgniter \Shield \Entities \User ;
8+ use CodeIgniter \Shield \Exceptions \HTTPException ;
99use CodeIgniter \Shield \Result ;
1010
1111/**
Original file line number Diff line number Diff line change 22
33namespace CodeIgniter \Shield \Authorization ;
44
5- use Exception ;
5+ use CodeIgniter \ Shield \ Exceptions \ HTTPException ;
66
7- class AuthorizationException extends Exception
7+ class AuthorizationException extends HTTPException
88{
99 protected $ code = 401 ;
1010
Original file line number Diff line number Diff line change 22
33namespace CodeIgniter \Shield \Exceptions ;
44
5- class LogicException extends \LogicException
5+ class LogicException extends \LogicException implements BaseException
66{
77}
Original file line number Diff line number Diff line change 22
33namespace CodeIgniter \Shield \Exceptions ;
44
5- class RuntimeException extends \RuntimeException
5+ class RuntimeException extends \RuntimeException implements BaseException
66{
77}
Original file line number Diff line number Diff line change 22
33namespace Tests \Unit ;
44
5- use CodeIgniter \HTTP \Exceptions \HTTPException ;
65use CodeIgniter \HTTP \Response ;
76use CodeIgniter \Shield \Authentication \AuthenticationException ;
87use CodeIgniter \Shield \Authentication \Passwords \PwnedValidator ;
98use CodeIgniter \Shield \Config \Auth as AuthConfig ;
109use CodeIgniter \Shield \Config \Services ;
10+ use CodeIgniter \Shield \Exceptions \HTTPException ;
1111use CodeIgniter \Test \CIUnitTestCase ;
1212use Config \App ;
1313
You can’t perform that action at this time.
0 commit comments