2018-02-07 10:36:09 1627次浏览 0条回答 0 悬赏 10 金钱

protected function beforeLogin($identity, $cookieBased, $duration)

{
    $event = new UserEvent([
        'identity' => $identity,
        'cookieBased' => $cookieBased,
        'duration' => $duration,
    ]);
    $this->trigger(self::EVENT_BEFORE_LOGIN, $event);

    return $event->isValid;
}

这段代码是用户登陆后的代码,可是这个trigger是在哪里绑定的事件?

    没有找到数据。
您需要登录后才可以回答。登录 | 立即注册
陶渊明
见习主管

陶渊明 上海

注册时间:2015-08-08
最后登录:2024-01-26
在线时长:11小时45分
  • 粉丝6
  • 金钱160
  • 威望0
  • 积分270

热门问题