使用Symfony进行Steam身份验证

时间:2016-11-16 23:44:31

标签: authentication symfony steam

我正在开发一个项目,我想连接到Steam,以便根据登录用户提取信息 - 我的应用程序正在运行Symfony 3,我在git上找到了一个我希望按顺序使用的包验证并将用户登录到我的站点。

这是捆绑 - https://github.com/SirWaddles/SteamAuthBundle

因为没有作曲家包我已经将包克隆到我的appBundle旁边的src /文件夹中 - 在appKernal中启用并连接了包中所述的配置和安全性 - 我现在收到以下错误< / p>

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%' ]

现在当然guzzle服务引起了问题,但我没有Guzzle的经验 - 我对它的基础知之甚少,但任何人都能指出我可能错过的任何明显的东西吗?任何帮助将不胜感激或指点!

1 个答案:

答案 0 :(得分:0)

- 对于将来会在这里结束的任何人 -

原来我的问题是我在我的盒子上运行了php 7.0 - 我降级到5.6,因为除了速度之外我没有真正需要在7上

然后我更新了我的供应商和点击到位的东西