"lopi_pusher" 下无法识别的选项 "scheme, cluster, url"
Unrecognized options "scheme, cluster, url" under "lopi_pusher"
我正在使用 LopiPusherBundle 在 symfony 2.7.26
中清除缓存时出现以下错误
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
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"
我正在使用 LopiPusherBundle 在 symfony 2.7.26
中清除缓存时出现以下错误[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
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"