使用 Symfony 进行 Steam 身份验证
Steam Authentication with Symfony
我正在做一个项目,我想连接到 Steam,以便根据登录用户提取信息 - 我的应用程序是 运行 Symfony 3,我在 [=24] 上找到了一个包=],我想使用它来验证用户并将其登录到我的网站。
这是捆绑包 - https://github.com/SirWaddles/SteamAuthBundle
因为没有作曲家包,我已经将包克隆到我的 AppBundle 旁边的 src/ 文件夹中 - 在 appKernal 中启用并按照包中所述连接配置和安全性 - 我现在得到以下信息错误
The service "steam.user_service" has a dependency on a non-existent service "guzzle.client.steam_user".
现在我知道这是从以下服务调用的 class
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 的经验 - 我对它的基础略有了解,但任何人都可以指出我可能遗漏的任何明显内容吗?任何帮助或指点将不胜感激!
-对于将来来到这里的任何人-
原来我的问题是我的盒子上 运行 php 7.0 - 我降级到 5.6 因为除了速度
然后我更新了我的供应商,一切就绪
我正在做一个项目,我想连接到 Steam,以便根据登录用户提取信息 - 我的应用程序是 运行 Symfony 3,我在 [=24] 上找到了一个包=],我想使用它来验证用户并将其登录到我的网站。
这是捆绑包 - https://github.com/SirWaddles/SteamAuthBundle
因为没有作曲家包,我已经将包克隆到我的 AppBundle 旁边的 src/ 文件夹中 - 在 appKernal 中启用并按照包中所述连接配置和安全性 - 我现在得到以下信息错误
The service "steam.user_service" has a dependency on a non-existent service "guzzle.client.steam_user".
现在我知道这是从以下服务调用的 class
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 的经验 - 我对它的基础略有了解,但任何人都可以指出我可能遗漏的任何明显内容吗?任何帮助或指点将不胜感激!
-对于将来来到这里的任何人-
原来我的问题是我的盒子上 运行 php 7.0 - 我降级到 5.6 因为除了速度
然后我更新了我的供应商,一切就绪