ErrorReporterBootstrap   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 11
rs 10
c 1
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 1
1
<?php
2
3
namespace App\Bootstrap;
4
5
use Core\Bootstrap\BootstrapInterface;
6
use Core\ErrorReporter\ErrorReporterService;
7
8
class ErrorReporterBootstrap implements BootstrapInterface
9
{
10
    public function boot(array $env)
11
    {
12
        ini_set('display_errors', $env['error']['displayErrors']);
13
14
        $errorService = new ErrorReporterService();
15
        $errorService->setConfig($env['error']);
16
        $errorService->registerReport();
17
    }
18
}
19