我有一个论坛,我已经放在公共目录中,我想与网站和论坛进行SSO。问题是,当我尝试使用Zend的AuthenticationService
类来获取用户会话时,它会出现以下错误:
Class' Zend \ Authentication \ AuthenticationService'在C:\ Users \ Milen \ Documents \ site \ public \ forum \ admin \ sources \ classes \ session \ ssoPublicSessions.php
中找不到
我做错了什么? 代码:
<?php
use Zend\Authentication\AuthenticationService;
class ssoPublicSessions extends publicSessions {
public function __construct() {
parent::__construct();
if (self::$data_store['member_id'] OR $this->_member->is_not_human) {
return;
}
$auth = new AuthenticationService();
$member = $auth->getIdentity();
if (!$member) {
return;
}
self::setMember($member['member_id']);
$this->_updateMemberSession();
return;
}
}