1 | <?php |
||
13 | class AdapterChain extends EventProvider implements AdapterInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var AdapterChainEvent |
||
17 | */ |
||
18 | protected $event; |
||
19 | |||
20 | /** |
||
21 | * Returns the authentication result |
||
22 | * |
||
23 | * @return AuthenticationResult |
||
24 | */ |
||
25 | public function authenticate() |
||
39 | |||
40 | /** |
||
41 | * prepareForAuthentication |
||
42 | * |
||
43 | * @param Request $request |
||
44 | * @return Response|bool |
||
45 | * @throws Exception\AuthenticationEventException |
||
46 | */ |
||
47 | public function prepareForAuthentication(Request $request) |
||
79 | |||
80 | /** |
||
81 | * resetAdapters |
||
82 | * |
||
83 | * @return AdapterChain |
||
84 | */ |
||
85 | public function resetAdapters() |
||
96 | |||
97 | /** |
||
98 | * logoutAdapters |
||
99 | * |
||
100 | * @return AdapterChain |
||
101 | */ |
||
102 | public function logoutAdapters() |
||
107 | |||
108 | /** |
||
109 | * Get the auth event |
||
110 | * |
||
111 | * @return AdapterChainEvent |
||
112 | */ |
||
113 | public function getEvent() |
||
121 | |||
122 | /** |
||
123 | * Set an event to use during dispatch |
||
124 | * |
||
125 | * By default, will re-cast to AdapterChainEvent if another event type is provided. |
||
126 | * |
||
127 | * @param Event $e |
||
128 | * @return AdapterChain |
||
129 | */ |
||
130 | public function setEvent(Event $e) |
||
140 | } |
||
141 |