SerializersServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php namespace Nwidart\LaravelBroadway\Broadway;
2
3
use Broadway\Serializer\SimpleInterfaceSerializer;
4
use Illuminate\Support\ServiceProvider;
5
6
class SerializersServiceProvider extends ServiceProvider
7
{
8
    public function register()
9
    {
10
        $this->app->bind(\Broadway\Serializer\Serializer::class, function () {
11
            return new SimpleInterfaceSerializer();
12
        });
13
    }
14
}
15