ApplicationBootstrap   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 5 1
1
<?php
2
3
namespace App\Bootstrap;
4
5
use App\Controller\Admin\AdminService;
6
use Core\Application;
7
use Core\Bootstrap\BootstrapInterface;
8
9
class ApplicationBootstrap implements BootstrapInterface
10
{
11
    public function boot(array $env)
12
    {
13
        Application::setConfig($env['site']);
14
        AdminService::setEnvironment($env);
15
    }
16
}
17