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 - - 我有一个基本的小想法,但任何人都可以指出任何明显的,我可能错过了?任何帮助将不胜感激或指针!
如果您在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
嘿@Cerad感谢您的回复!我意识到作曲家包之前,但不熟悉使用dev-master分支,所以谢谢你!我发现捆绑包试图使用的包叫做'eightpoints/guzzle-bundle'需要php -v 5.6,但是我正在运行7 - 这有点痛苦:/但是再次感谢你的进步:) –