所以我有这个应用程序绑定routes.php
:
App::bind('HybridAuth', function()
{
return new Hybrid_Auth(Config::get('hybridauth'));
});
我的控制器上的这个构造函数:
public function __construct(UserRepository $user, HybridAuth $oauth)
{
$this->user = $user;
$this->oauth = $oauth;
}
为什么我仍然Class HybridAuth not found
在控制器中收到错误?它不应该使用我刚刚做的应用程序绑定吗?