mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-02-19 02:27:57 -05:00
20 lines
328 B
PHP
20 lines
328 B
PHP
<?php
|
|
|
|
/* Icinga DB Web | (c) 2020 Icinga GmbH | GPLv2 */
|
|
|
|
namespace Icinga\Module\Icingadb\Common;
|
|
|
|
use ipl\Sql\Connection;
|
|
|
|
trait Database
|
|
{
|
|
/**
|
|
* Get the connection to the Icinga database
|
|
*
|
|
* @return Connection
|
|
*/
|
|
public function getDb(): Connection
|
|
{
|
|
return Backend::getDb();
|
|
}
|
|
}
|