File tree 4 files changed +2
-65
lines changed
4 files changed +2
-65
lines changed Original file line number Diff line number Diff line change 70
70
"cs-check" : " phpcs --colors -p src/ tests/" ,
71
71
"cs-fix" : " phpcbf --colors -p src/ tests/" ,
72
72
"phpstan" : " tools/phpstan analyse" ,
73
- "psalm" : " tools/psalm --show-info=false" ,
74
- "psalm-baseline" : " tools/psalm --set-baseline=psalm-baseline.xml" ,
75
- "stan" : [
76
- " @phpstan" ,
77
- " @psalm"
78
- ],
73
+ "stan" : " @phpstan" ,
79
74
"stan-baseline" : " tools/phpstan --generate-baseline" ,
80
75
"stan-setup" : " phive install" ,
81
76
"test" : " phpunit" ,
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 18
18
19
19
use ArrayAccess ;
20
20
use Authentication \Identifier \AbstractIdentifier ;
21
- use Authentication \Identifier \IdentifierCollection ;
22
21
use Authentication \PasswordHasher \PasswordHasherTrait ;
23
22
use Authentication \UrlChecker \UrlCheckerTrait ;
24
23
use Cake \Http \Cookie \Cookie ;
27
26
use InvalidArgumentException ;
28
27
use Psr \Http \Message \ResponseInterface ;
29
28
use Psr \Http \Message \ServerRequestInterface ;
30
- use RuntimeException ;
31
29
32
30
/**
33
31
* Cookie Authenticator
34
32
*
35
- * Authenticates an identity based on a cookies data.
33
+ * Authenticates an identity based on a cookie data.
36
34
*/
37
35
class CookieAuthenticator extends AbstractAuthenticator implements PersistenceInterface
38
36
{
@@ -57,28 +55,6 @@ class CookieAuthenticator extends AbstractAuthenticator implements PersistenceIn
57
55
'salt ' => true ,
58
56
];
59
57
60
- /**
61
- * @inheritDoc
62
- */
63
- public function __construct (IdentifierCollection $ identifiers , array $ config = [])
64
- {
65
- $ this ->_checkCakeVersion ();
66
-
67
- parent ::__construct ($ identifiers , $ config );
68
- }
69
-
70
- /**
71
- * Checks the CakePHP Version by looking for the cookie implementation
72
- *
73
- * @return void
74
- */
75
- protected function _checkCakeVersion (): void
76
- {
77
- if (!class_exists (Cookie::class)) {
78
- throw new RuntimeException ('Install CakePHP version >=3.5.0 to use the `CookieAuthenticator`. ' );
79
- }
80
- }
81
-
82
58
/**
83
59
* @inheritDoc
84
60
*/
You can’t perform that action at this time.
0 commit comments