update composer
[pharext/pharext.org] / bootstrap / pq.php
1 <?php
2
3 namespace app;
4
5 require_once __DIR__."/config.php";
6
7 use pq\Connection;
8
9 /* @var $injector \Auryn\Injector */
10
11 $pqconfig = function($key, $injector) {
12 return $injector->make(Config::class)->pq->$key;
13 };
14
15 $injector->share(Connection::class)
16 ->define(Connection::class, [
17 "+dsn" => $pqconfig,
18 "+flags" => $pqconfig
19 ]);