Passed
Push — main ( 6266e4...5fc3be )
by Thierry
08:29
created

FacadesBundle::getFacadeContainer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Lagdo\Symfony\Facades;
4
5
use Symfony\Component\HttpKernel\Bundle\Bundle;
6
7
class FacadesBundle extends Bundle
8
{
9
    /**
10
     * @var Container
11
     */
12
    private static $facadeContainer = null;
13
14
    /**
15
     * @return Container
16
     */
17
    public static function getFacadeContainer(): Container
18
    {
19
        return self::$facadeContainer;
20
    }
21
22
    /**
23
     * @inheritdoc
24
     */
25
    public function boot()
26
    {
27
        parent::boot();
28
29
        self::$facadeContainer = new Container($this->container);
30
    }
31
}
32