【发布时间】:2015-06-24 04:14:06
【问题描述】:
我用 composer 从https://github.com/firebase/php-jwt 安装了 php-jwt。
我现在的库位于 vendor\firebase\php-jwt\Firebase\PHP-JWT 并且该目录的内容与 git 上的相同。
在 application.config.php 我有:
'modules' => array(
// 'ZendDeveloperTools',
'DoctrineModule',
'DoctrineORMModule',
'JWT'
),
在 autoload_namespaces.php 我有:
'JWT\\' => array($vendorDir . '/firebase/php-jwt/Firebase'),
autoload_classmap.php:
'JWT' => $vendorDir . '/firebase/php-jwt/Firebase/PHP-JWT/Authentication/JWT.php',
错误:
Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (JWT) could not be initialized.' in \vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php on line 175
我不知道我做错了什么。
【问题讨论】:
标签: php zend-framework2 jwt