Completed
Push — master ( 04e760...b100d6 )
by Park Jong-Hun
19:01
created

ErrorReporterBootstrap   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 1
A getConfig() 0 4 1
1
<?php
2
3
namespace App\Bootstrap;
4
5
use Core\Bootstrap\BootstrapInterface;
6
use Core\ErrorReporterRegister;
7
use Core\Application;
8
9
class ErrorReporterBootstrap implements BootstrapInterface
10
{
11
12
    public function boot(Application $app)
13
    {
14
        $register = new ErrorReporterRegister();
15
        $register->setConfig($this->getConfig());
16
        $register->register();
17
    }
18
19
    private function getConfig()
20
    {
21
        return require __DIR__ . '/../../config/errorReporter.php';
22
    }
23
}
24