2014-10-27 122 views
0

我对Laravel很安静,我发现它很好,很容易主要来自CodeIgniter背景。但今天我刚刚偶然发现了我与Laravel的第一个大问题,它是伟大的作曲家。LucaDegasperi OAuth2Server问题与Laravel 4与作曲家更新

我刚刚从GIT克隆了Laravel web项目。一旦克隆,我无法在本地XAMPP服务器上运行该应用程序。不过,我觉得也许这是一个依赖问题,所以我跑作曲家更新,这里是我得到的错误:

Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Generating autoload files 
{"error": 
    { 
     "type":"ErrorException", 
     "message":"Declaration of LucaDegasperi\\OAuth2Server\\OAuth2ServerServiceProvider::boot() should be compatible with Illuminate\\Support\\ServiceProvider::boot()", 
     "file":"C:\\xampp\\htdocs\\working_folder\\myproject\\vendor\\lucadegasperi\\oauth2-  server-laravel\\src\\OAuth2ServerServiceProvider.php", 
     "line":177 
    } 
} 
{"error": 
    { 
     "type":"ErrorException", 
     "message":"Declaration of LucaDegasperi\\OAuth2Server\\OAuth2ServerServiceProvider::boot() should be compatible with Illuminate\\Support\\ServiceProvider::boot()", 
     "file":"C:\\xampp\\htdocs\\working_folder\\myproject\\vendor\\lucadegasperi\\oauth2-server-laravel\\src\\OAuth2ServerServiceProvider.php", 
     "line":177 
    } 
} 

我已经研究了上线解决方案,但我没有机会修复它。下面是几件事情我已经尝试:

  • 改版本的包lucadegasperi /的oauth2-服务器laravel的
  • 变化用于开发稳定的最低稳定性,反之亦然

所有尝试的修复导致了其他错误。

有谁知道什么可以在这里是问题,如果是的话我能做些什么来解决这个问题

回答

0

我找到了解决办法毕竟。在Laravel Chat Room得到了一些帮助。 基本上我不得不改变我的oAuth2server版本,在composer.json文件中,从“dev-master”“〜1.0.0”。这似乎很好地与Laravel 4.2。 所以,如果你有同样的问题,只是尝试改变版本,看看你是否有任何运气。

否则我真的会推荐在Laravel Chat Room问你的问题,那里的人真的很有帮助。询问后一分钟我收到了我的回复。