Completed
Push — master ( 7b2ae7...b60607 )
by Dominik
06:56
created

ConsoleProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 13 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Chubbyphp\ApiSkeleton\Provider;
6
7
use Pimple\Container;
8
use Pimple\ServiceProviderInterface;
9
10
final class ConsoleProvider implements ServiceProviderInterface
11
{
12
    /**
13
     * @param Container $container
14
     */
15 1
    public function register(Container $container)
16
    {
17 1
        $container['console.name'] = 'chubbyphp-api-slim-skeleton';
18 1
        $container['console.version'] = '1.0';
19
20 1
        $container['console.helpers'] = function () {
21 1
            return [];
22
        };
23
24 1
        $container['console.commands'] = function () {
25 1
            return [];
26
        };
27
    }
28
}
29