1

我正在尝试在 Zend Framework 2 + Doctrine 中进行身份验证:

我想我添加了我需要的所有东西到 Module.php + module.config.php

在我的控制器中,我这样做:

$authService = $this->getServiceLocator()->get('Zend\Authentication\AuthenticationService');
$adapter = $authService->getAdapter();
$adapter->setIdentityValue($formdata['username']);
$adapter->setCredentialValue($formdata['password']);
$authResult = $adapter->authenticate();

它一直工作到 $adapter->authenticate();

错误是:

警告:class_parents(): Class does not exist and could not be loaded in /.../doctrine/common/lib/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php on line 40

public function getParentClasses($class)
{
      return class_parents($class); //Line 40
}
4

0 回答 0