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

ConsoleServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A bind() 0 8 1
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
}