| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function __construct(ConfigInterface $config, string $collection) |
||
| 13 | { |
||
| 14 | parent::__construct($config, $collection); |
||
| 15 | $db_host = $this->getHost(); |
||
| 16 | $db_port = $this->getPort(); |
||
| 17 | $db_auth = $this->getAuth(); |
||
| 18 | $db_driv = $this->getConfig()->get('driver'); |
||
| 19 | $db_name = $this->getConfig()->get('database'); |
||
| 20 | |||
| 21 | $dsn = "$db_driv://$db_auth$db_host:$db_port/$db_name"; |
||
| 22 | |||
| 23 | $this->setDsn($dsn); |
||
| 24 | } |
||
| 47 |