LoadConfiguration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A bootstrap() 0 8 1
1
<?php
2
3
namespace Magister\Services\Foundation\Bootstrap;
4
5
use Magister\Magister;
6
use Magister\Services\Config\Repository;
7
8
/**
9
 * Class LoadConfiguration.
10
 */
11
class LoadConfiguration
12
{
13
    /**
14
     * Bootstrap the given application.
15
     *
16
     * @param \Magister\Magister $app
17
     *
18
     * @return void
19
     */
20
    public function bootstrap(Magister $app)
21
    {
22
        $loader = $app->getConfigLoader();
23
24
        $app->bind('config', new Repository($loader));
25
26
        mb_internal_encoding('UTF-8');
27
    }
28
}
29