Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
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 |