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

ServiceProvider::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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