Application   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
1
<?php
2
3
namespace MS\Sentry\Monitor;
4
5
use MS\Sentry\Monitor\Migration\EventTable;
6
use Silex\Application as BaseApplication;
7
use Silex\Provider\DoctrineServiceProvider;
8
9
class Application extends BaseApplication
10
{
11
    /**
12
     * @param array $values
13
     */
14
    public function __construct(array $values = [])
15
    {
16
        parent::__construct($values);
17
18
        $this->register(new DoctrineServiceProvider, ['db.options' => [
19
            'dbname' => 'events',
20
            'driver' => 'pdo_sqlite',
21
            'path' => getenv('HOME') . '/.events.db',
22
        ]]);
23
24
        $eventTable = new EventTable($this['db']);
25
        $eventTable->create();
26
    }
27
}
28