Completed
Push — master ( 16b7cb...b112db )
by Vladimir
07:44
created

FoundationServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Foundation\Providers;
6
7
use FondBot\Foundation\Kernel;
8
use FondBot\Foundation\ServiceProvider;
9
use Illuminate\Contracts\Bus\Dispatcher;
10
use Illuminate\Contracts\Container\Container;
11
12
class FoundationServiceProvider extends ServiceProvider
13
{
14
    public function register(): void
15
    {
16
        $this->app->singleton(Kernel::class, function () {
17
            return new Kernel(resolve(Container::class), resolve(Dispatcher::class));
18
        });
19
    }
20
}
21