ServiceProvider::__construct()   A
last analyzed

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
     *
19
     * @param App $app
20
     */
21
    public function __construct(App $app)
22
    {
23
        $this->app = $app;
24
    }
25
26
    public function register(Container $pimple)
27
    {
28
        $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...
29
            return $this->app;
30
        };
31
    }
32
}
33