2016-11-16 98 views
0

我正在開發一個項目,我想連接到Steam以便根據登錄用戶提取信息 - 我的應用程序正在運行Symfony 3,並且我在git上發現了一個我想要的包用於驗證並將用戶登錄到我的網站。Symfony的蒸汽認證

這裏是束 - https://github.com/SirWaddles/SteamAuthBundle

因爲沒有作曲家包我已經克隆束引入我的src /文件夾沿着側坐在我的appbundle - 在appKernal啓用並迷上了配置和安全規定在束 - 我現在得到以下錯誤

The service "steam.user_service" has a dependency on a non-existent service "guzzle.client.steam_user". 

現在我知道這是被從下面的服務類稱爲

services: 
steam.user_provider: 
    class: SteamAuthBundle\Security\User\SteamUserProvider 
    arguments: [ '@doctrine.orm.default_entity_manager', '@steam.user_service', '%steam_auth.user_class%' ] 

steam.security.authentication.provider: 
    class: SteamAuthBundle\Security\Authentication\SteamProvider 
    arguments: [ '@steam.user_provider', '@guzzle.client.steam' ] 
    public: false 

steam.security.authentication.listener: 
    class: SteamAuthBundle\Security\Firewall\SteamListener 
    arguments: [ 'home', '@security.token_storage', '@security.authentication.manager', '@router' ] 
    public: false 

steam.security.authentication.entry_point: 
    class: SteamAuthBundle\Security\EntryPoint\SteamEntryPoint 
    arguments: [ '@security.http_utils' ] 
    public: false 

steam.user_service: 
    class: SteamAuthBundle\Service\SteamUserService 
    arguments: [ '@guzzle.client.steam_user', '%steam_auth.steam_key%' ] 

當然現在的gu服服務正在引發問題,但我沒有經驗與Gu - - 我有一個基本的小想法,但任何人都可以指出任何明顯的,我可能錯過了?任何幫助將不勝感激或指針!

+0

如果您在composer.json文件看,你會發現包是依賴於一種叫做:eightpoints /狂飲束你肯定有沒有作曲家包?如果是這樣,那麼看看作曲家網站,看看如何從git倉庫安裝。然後這樣做將安裝所有必要的依賴關係,並將所有內容保留在供應商下。該軟件包確實存在:https://packagist.org/packages/sirwaddles/steamauth沒有穩定版本。需要使用dev版本。 http://stackoverflow.com/questions/18214600/composer-how-to-install-dev-packages-in-symfony-2-3 – Cerad

+0

嘿@Cerad感謝您的回覆!我意識到作曲家包之前,但不熟悉使用dev-master分支,所以謝謝你!我發現捆綁包試圖使用的包叫做'eightpoints/guzzle-bundle'需要php -v 5.6,但是我正在運行7 - 這有點痛苦:/但是再次感謝你的進步:) –

回答

0

- 對於任何人誰在未來 -

這裏結束了原來我的問題是,我是在我的機器上運行PHP 7.0 - 我降級到5.6,因爲我沒有真正的需要在7距速度

然後我更新了我的供應商和東西卡入位置