我正在使用LopiPusherBundle在清除symfony 2.7.26中的缓存时获取以下错误
[SymfonyComponentConfigDefinitionExceptionInvalidConfigurationException]
Unrecognized options "scheme, cluster, url" under "lopi_pusher"
# app/config/config.yml
lopi_pusher:
scheme: http
host: api.pusherapp.com
port: 80
cluster: ap2
timeout: 30
debug: false
app_id: <app_id>
key: <key>
secret: <secret>
url: <scheme>://<key>:<secret>@<host>[:<port>]/apps/<app-id>
auth_service_id: my_channel_authenticator
您安装的版本小于 1.3,并且这些选项不可用。
你可以在这里看到这个 https://github.com/laupiFrpar/LopiPusherBundle/blob/1.2.9/DependencyInjection/Configuration.php
检查您的 composer.json 并确保那里有正确的版本
你可以只使用
"laupifrpar/pusher-bundle": "*"
不要忘记在使用修改 composer.json 后更新您的依赖项
composer update "laupifrpar/pusher-bundle"