1 | <?php |
||
11 | class Authenticator extends AuthenticationService |
||
12 | { |
||
13 | /** |
||
14 | * @var AuthenticationService |
||
15 | */ |
||
16 | protected $authService; |
||
17 | |||
18 | /** |
||
19 | * @var AuthResult |
||
20 | */ |
||
21 | protected $result; |
||
22 | |||
23 | /** |
||
24 | * @var AdapterInterface |
||
25 | */ |
||
26 | protected $adapter; |
||
27 | |||
28 | /** |
||
29 | * @param AuthenticationService $authService |
||
30 | * @param AdapterInterface $adapter |
||
31 | */ |
||
32 | public function __construct(AuthenticationService $authService, AdapterInterface $adapter) |
||
37 | |||
38 | /** |
||
39 | * @param AdapterInterface|null $adapter |
||
40 | * @return AuthResult |
||
41 | */ |
||
42 | public function authenticate(AdapterInterface $adapter = null) |
||
62 | |||
63 | /** |
||
64 | * @return AdapterInterface |
||
65 | */ |
||
66 | public function getAdapter() |
||
70 | |||
71 | public function hasIdentity() |
||
75 | } |
||
76 |