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

ErrorReporterBootstrap::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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