Completed
Push — master ( c1fd74...f54537 )
by Mihail
17:26
created

FfcmsDebugBar   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 8

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 2
1
<?php
2
namespace Ffcms\Core\Debug;
3
4
use DebugBar\DataCollector\ExceptionsCollector;
5
use DebugBar\DataCollector\MemoryCollector;
6
use DebugBar\DataCollector\MessagesCollector;
7
use DebugBar\DataCollector\PhpInfoCollector;
8
use DebugBar\DataCollector\RequestDataCollector;
9
use DebugBar\DataCollector\TimeDataCollector;
10
use DebugBar\DebugBar;
11
use Ffcms\Core\Debug\Collectors\FfcmsInfoCollector;
12
13
/**
14
 * Class FfcmsDebugBar. Extend default class and configure some ffcms features ;)
15
 * @package Ffcms\Core\Debug
16
 */
17
class FfcmsDebugBar extends DebugBar
18
{
19
    public function __construct()
20
    {
21
        try {
22
            $this->addCollector(new PhpInfoCollector());
23
            $this->addCollector(new FfcmsInfoCollector());
24
            $this->addCollector(new MessagesCollector());
25
            $this->addCollector(new RequestDataCollector());
26
            $this->addCollector(new TimeDataCollector());
27
            $this->addCollector(new MemoryCollector());
28
            $this->addCollector(new ExceptionsCollector());
29
        } catch (\Exception $e){} // mute
30
    }
31
}