LaravelAblyBroadcasterServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 5 1
1
<?php
2
3
namespace SpringboardVR\LaravelAblyBroadcaster;
4
5
use Ably\AblyRest;
6
use Illuminate\Support\ServiceProvider;
7
use Illuminate\Support\Facades\Broadcast;
8
use Illuminate\Support\Arr;
9
10
class LaravelAblyBroadcasterServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Bootstrap the application services.
14
     */
15
    public function boot()
16
    {
17
        Broadcast::extend('ably', function ($broadcasting, $config) {
18
            return new AblyBroadcaster(
19
                new AblyRest($config)
20
            );
21
        });
22
    }
23
24
}
25