Passed
Push — master ( ac3ce9...4824e6 )
by Alexey
04:00
created

ConsoleServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 7
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
crap 2
1
<?php declare(strict_types = 1);
2
3
namespace Venta\Framework\ServiceProvider;
4
5
use Venta\Console\CommandCollection;
6
use Venta\Contracts\Console\CommandCollection as CommandCollectionContract;
7
use Venta\Contracts\Container\MutableContainer;
8
use Venta\Framework\Commands\Shell;
9
use Venta\ServiceProvider\AbstractServiceProvider;
10
11
/**
12
 * Class ConsoleServiceProvider
13
 *
14
 * @package Venta\Framework\ServiceProvider
15
 */
16
final class ConsoleServiceProvider extends AbstractServiceProvider
17
{
18
19
    /**
20
     * @inheritDoc
21
     */
22
    public function bind(MutableContainer $container)
23
    {
24
        $container->bind(CommandCollectionContract::class, CommandCollection::class);
25
26
        $this->provideCommands(
27
            Shell::class
28
        );
29
    }
30
}