summaryrefslogtreecommitdiffstats
path: root/library/Director/Daemon/DbBasedComponent.php
blob: c176c140f843dca3b87fa65c8c61409dabf78aaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace Icinga\Module\Director\Daemon;

use Icinga\Module\Director\Db;

interface DbBasedComponent
{
    /**
     * @param Db $db
     * @return \React\Promise\ExtendedPromiseInterface;
     */
    public function initDb(Db $db);

    /**
     * @return \React\Promise\ExtendedPromiseInterface;
     */
    public function stopDb();
}