LoadConfiguration::bootstrap()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
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