Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
45 | public function __invoke(Application\Application $application) : void |
||
46 | { |
||
47 | // Check if new relict extension is loaded |
||
48 | if (!extension_loaded('newrelic')) { |
||
49 | return; |
||
50 | } |
||
51 | |||
52 | // Register new relic logger into tracy |
||
53 | $logger = new Loggers\Logger(Debugger::$logDirectory, Debugger::$email); |
||
54 | |||
55 | Debugger::setLogger($logger); |
||
56 | } |
||
57 | } |
||
58 |