我需要拦截登录事件,我已经通过事件进行了尝试,但没有像我预期的那样工作。
/**
* @return array
*/
public function registerEvents()
{
$hooks = array(
// 'Request.initAuthenticationObject' => 'initAuthenticationObject',
// 'API.Request.authenticate' => 'ApiRequestAuthenticate',
// 'Request.dispatch' => 'RequestDispatch'
);
return $hooks;
}