【发布时间】:2014-01-30 01:56:11
【问题描述】:
我想尝试使用这个 OAuth2-Server 示例 (https://github.com/alexbilbie/oauth2-example-auth-server),但是当我想运行它时,它给了我错误 " Fatal error: Interface 'OAuth2\Storage\ClientInterface' not found in /var/www/oauth2-auth-server/model_client.php on line 2 "
我想我需要将自动加载器添加到 composer.json 我做到了,但它永远给我这个错误。但我也认为在 oauth.php 中我发现了这一行:
// Initiate the auth server with the models
$server = new \OAuth2\AuthServer(new ClientModel, new SessionModel, new ScopeModel);
但是 OAuth 文件夹中没有任何AuthServer?有没有人用过这个例子。提前致谢!
【问题讨论】:
-
您是否使用
composer.json文件和 Composer 来安装和管理依赖项? -
是的 Brodie,我正在使用 composer.json