1 | <?php |
||
11 | class CookieAuthenticate extends BaseAuthenticate |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * Constructor. |
||
16 | * |
||
17 | * @param \Cake\Controller\ComponentRegistry $registry The Component registry used on this request. |
||
18 | * @param array $config Array of config to use. |
||
19 | */ |
||
20 | public function __construct(ComponentRegistry $registry, array $config = []) |
||
30 | |||
31 | /** |
||
32 | * Authenticate a user based on the cookies information. |
||
33 | * |
||
34 | * @param \Cake\Network\Request $request The request instance. |
||
35 | * @param \Cake\Network\Response $response The response instance. |
||
36 | * |
||
37 | * @return mixed |
||
38 | * |
||
39 | * @throws \RuntimeException When the CookieComponent is not loaded. |
||
40 | */ |
||
41 | public function authenticate(Request $request, Response $response) |
||
64 | |||
65 | /** |
||
66 | * Returns a list of all events that this authenticate class will listen to. |
||
67 | * |
||
68 | * @return array |
||
69 | */ |
||
70 | public function implementedEvents() |
||
76 | |||
77 | /** |
||
78 | * Delete cookies when an user logout. |
||
79 | * |
||
80 | * @param \Cake\Event\Event $event The logout Event. |
||
81 | * @param array $user The user about to be logged out. |
||
82 | * |
||
83 | * @return void |
||
84 | */ |
||
85 | public function logout(Event $event, array $user) |
||
89 | } |
||
90 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.