1 | <?php |
||
14 | class AdapterChain implements AdapterInterface |
||
15 | { |
||
16 | use EventManagerAwareTrait; |
||
17 | |||
18 | /** |
||
19 | * @var AdapterChainEvent |
||
20 | */ |
||
21 | protected $event; |
||
22 | |||
23 | /** |
||
24 | * Returns the authentication result |
||
25 | * |
||
26 | * @return AuthenticationResult |
||
27 | */ |
||
28 | public function authenticate() |
||
42 | |||
43 | /** |
||
44 | * prepareForAuthentication |
||
45 | * |
||
46 | * @param Request $request |
||
47 | * @return Response|bool |
||
48 | * @throws Exception\AuthenticationEventException |
||
49 | */ |
||
50 | public function prepareForAuthentication(Request $request) |
||
90 | |||
91 | /** |
||
92 | * resetAdapters |
||
93 | * |
||
94 | * @return AdapterChain |
||
95 | */ |
||
96 | public function resetAdapters() |
||
111 | |||
112 | /** |
||
113 | * logoutAdapters |
||
114 | * |
||
115 | * @return AdapterChain |
||
116 | */ |
||
117 | public function logoutAdapters() |
||
124 | |||
125 | /** |
||
126 | * Get the auth event |
||
127 | * |
||
128 | * @return AdapterChainEvent |
||
129 | */ |
||
130 | public function getEvent() |
||
139 | |||
140 | /** |
||
141 | * Set an event to use during dispatch |
||
142 | * |
||
143 | * By default, will re-cast to AdapterChainEvent if another event type is provided. |
||
144 | * |
||
145 | * @param Event $e |
||
146 | * @return AdapterChain |
||
147 | */ |
||
148 | public function setEvent(Event $e) |
||
160 | } |
||
161 |