Completed
Push — master ( 50fc90...3c25bc )
by Vladimir
02:50
created

Application   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 18
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A version() 0 4 1
A registerBaseBindings() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Framework;
6
7
use FondBot\Foundation\Kernel;
8
use FondBot\Framework\Http\Kernel as HttpKernel;
9
use FondBot\Framework\Console\Kernel as ConsoleKernel;
10
use Illuminate\Foundation\Application as BaseApplication;
11
use Illuminate\Contracts\Http\Kernel as HttpKernelContract;
12
use FondBot\Framework\Exceptions\Handler as ExceptionsHandler;
13
use Illuminate\Contracts\Console\Kernel as ConsoleKernelContract;
14
use Illuminate\Contracts\Debug\ExceptionHandler as ExceptionHandlerContract;
15
16
class Application extends BaseApplication
17
{
18
    /** {@inheritdoc} */
19
    public function version(): string
20
    {
21
        return Kernel::VERSION;
22
    }
23
24
    /** {@inheritdoc} */
25
    protected function registerBaseBindings(): void
26
    {
27
        parent::registerBaseBindings();
28
29
        $this->singleton(HttpKernelContract::class, HttpKernel::class);
30
        $this->singleton(ConsoleKernelContract::class, ConsoleKernel::class);
31
        $this->singleton(ExceptionHandlerContract::class, ExceptionsHandler::class);
32
    }
33
}
34