Passed
Pull Request — master (#1)
by Tom
07:01
created

RestfulServiceProvider::register()   A

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
2
3
namespace TomHart\Restful;
4
5
use Illuminate\Routing\ResourceRegistrar;
6
use Illuminate\Support\ServiceProvider;
7
use TomHart\Restful\Routing\RestfulResourceRegistrar;
8
9
class RestfulServiceProvider extends ServiceProvider
10
{
11
12
    /**
13
     * Bind the resource registrar
14
     * @return void
15
     */
16
    public function register(): void
17
    {
18
        parent::register();
19
20
        $this->app->bind(ResourceRegistrar::class, RestfulResourceRegistrar::class);
21
    }
22
}
23