Completed
Push — master ( 3a3730...3061b5 )
by Nikita
04:26
created

ServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 23
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A register() 0 6 1
1
<?php
2
3
namespace Taisiya\CoreBundle\Provider;
4
5
use Pimple\Container;
6
use Pimple\ServiceProviderInterface;
7
use Slim\App;
8
9
abstract class ServiceProvider implements ServiceProviderInterface
10
{
11
    /**
12
     * @var App
13
     */
14
    private $app;
15
16
    /**
17
     * CoreServiceProvider constructor.
18
     * @param App $app
19
     */
20
    public function __construct(App $app)
21
    {
22
        $this->app = $app;
23
    }
24
25
    public function register(Container $pimple)
26
    {
27
        $pimple['app'] = function (Container $pimple) {
0 ignored issues
show
Unused Code introduced by
The parameter $pimple is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
28
            return $this->app;
29
        };
30
    }
31
}
32