2014-10-27 121 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問你的問題,那裏的人真的很有幫助。詢問後一分鐘我收到了我的回覆。