1 | <?php |
||
27 | class Authentication |
||
28 | { |
||
29 | /** |
||
30 | * @var LegacyAuthenticationInterface |
||
31 | */ |
||
32 | private $legacyAuthentication; |
||
33 | |||
34 | /** |
||
35 | * @var PasswordManagementInterface |
||
36 | */ |
||
37 | private $passwordManagement; |
||
38 | |||
39 | /** |
||
40 | * @var CustomerRegistry |
||
41 | */ |
||
42 | private $customerRegistry; |
||
43 | |||
44 | /** |
||
45 | * @var Session |
||
46 | */ |
||
47 | private $session; |
||
48 | |||
49 | /** |
||
50 | * @var Url |
||
51 | */ |
||
52 | private $url; |
||
53 | |||
54 | /** |
||
55 | * Authentication constructor. |
||
56 | * @param LegacyAuthenticationInterface $legacyAuthentication |
||
57 | * @param PasswordManagementInterface $passwordManagement |
||
58 | * @param CustomerRegistry $customerRegistry |
||
59 | * @param Session $session |
||
60 | * @param Url $url |
||
61 | */ |
||
62 | public function __construct( |
||
75 | |||
76 | /** |
||
77 | * @param AuthenticationModel $subject |
||
78 | * @param callable $proceed |
||
79 | * @param $customerId |
||
80 | * @param $password |
||
81 | * @return bool |
||
82 | * @throws Exception |
||
83 | */ |
||
84 | public function aroundAuthenticate(AuthenticationModel $subject, callable $proceed, $customerId, $password) |
||
97 | |||
98 | |||
99 | /** |
||
100 | * @param int $customerId |
||
101 | * @param string $password |
||
102 | * @return void |
||
103 | * @throws InputException |
||
104 | */ |
||
105 | private function updateCustomerPassword(int $customerId, string $password) : void |
||
114 | |||
115 | |||
116 | /** |
||
117 | * @param int $customerId |
||
118 | * @return string |
||
119 | */ |
||
120 | private function getResetPasswordUrl(int $customerId) : string |
||
131 | } |
||
132 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.