Completed
Push — develop ( 893c05...38ac6c )
by
unknown
12s
created

Tracy   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 11 1
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @copyright (c) 2013 - 2017 Cross Solution (http://cross-solution.de)
7
 * @license   MIT
8
 */
9
10
namespace Core\Service;
11
12
use Tracy\Debugger;
13
use Tracy\Logger;
14
15
/**
16
 * @author Miroslav Fedeleš <[email protected]>
17
 * @since 0.28
18
 * @package Core\Service
19
 */
20
class Tracy
21
{
22
    /**
23
     * @param array $config
24
     */
25
    public function register(array $config)
26
    {
27
        // enable logging of all error types globally
28
        Debugger::enable($config['mode'], $config['log'], $config['email']);
29
        Debugger::$strictMode = $config['strict'];
30
        Debugger::$showBar = $config['bar'];
31
        
32
        /** @var \Tracy\Logger $logger */
33
        $logger = Debugger::getLogger();
34
        $logger->emailSnooze = $config['email_snooze'];
35
    }
36
}
37