Test Failed
Push — master ( 649313...a02b76 )
by César
03:58
created

Kernel::__wakeup()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace Preetender\Routing;
4
5
use League\Container\Container;
6
7
/**
8
 * Class Kernel
9
 * @package Preetender\Routing
10
 */
11
final class Kernel
12
{
13
    /** @var  Container */
14
    private static $instance;
15
16
    /**
17
     * Get container service
18
     *
19
     * @return Container
20
     */
21
    public static function getContainer(): Container
22
    {
23
        if( null === self::$instance) {
24
            $container = new Container();
25
            $container->addServiceProvider(new RouteServiceProvider());
26
            self::$instance = $container;
27
        }
28
        return self::$instance;
29
    }
30
}