mirror of
https://github.com/flarum/core.git
synced 2025-08-02 14:37:49 +02:00
Support cluster setting on backend
This commit is contained in:
@@ -78,10 +78,17 @@ class PushNewPosts
|
|||||||
*/
|
*/
|
||||||
protected function getPusher()
|
protected function getPusher()
|
||||||
{
|
{
|
||||||
|
$options = [];
|
||||||
|
|
||||||
|
if ($cluster = $this->settings->get('flarum-pusher.app_cluster')) {
|
||||||
|
$options['cluster'] = $cluster;
|
||||||
|
}
|
||||||
|
|
||||||
return new Pusher(
|
return new Pusher(
|
||||||
$this->settings->get('flarum-pusher.app_key'),
|
$this->settings->get('flarum-pusher.app_key'),
|
||||||
$this->settings->get('flarum-pusher.app_secret'),
|
$this->settings->get('flarum-pusher.app_secret'),
|
||||||
$this->settings->get('flarum-pusher.app_id')
|
$this->settings->get('flarum-pusher.app_id'),
|
||||||
|
$options
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user