【问题标题】:Gos web socket bundle is not working with `symfony 4.2`Gos web socket bundle 不适用于 `symfony 4.2`
【发布时间】:2019-02-07 04:52:25
【问题描述】:

我正在尝试在 Symfony 4.2 中实现类似于 Facebook 的通知系统。我尝试用作曲家安装gos/web-socket-bundle。但它总是返回带有error code 1 的错误。是否有任何其他替代解决方案来实施此问题或建议解决此问题的方法。 https://packagist.org/packages/gos/web-socket-bundle In GosWebSocketExtension.php line 206: Shared configuration required Twig Bundle

Script cache:clear returned with error code 1

我尝试使用以下命令安装 composer require gos/web-socket-bundle

【问题讨论】:

    标签: php symfony socket.io web-notifications


    【解决方案1】:

    请做 Ratchet + Symfony 组合。

    棘轮是最好的解决方案,我推荐。 (http://socketo.me/docs/install)

    【讨论】:

      【解决方案2】:

      您需要安装两个要求来修复它:

      composer require symfony/tiwg-bundle 
      composer require symfony/security-bundle
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-03-17
        • 2019-06-02
        • 1970-01-01
        • 2017-02-11
        • 1970-01-01
        • 1970-01-01
        • 2021-02-28
        • 1970-01-01
        相关资源
        最近更新 更多