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

FacadesBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 23
rs 10
c 2
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFacadeContainer() 0 3 1
A boot() 0 5 1
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