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