mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-05-28 04:35:53 -04:00
`PromiseInterface` now includes the functionality `ExtendedPromiseInterface`. Additionally use imports instead of FQN. Ref: https://github.com/reactphp/promise/releases/tag/v3.0.0
21 lines
341 B
PHP
21 lines
341 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Director\Daemon;
|
|
|
|
use Icinga\Module\Director\Db;
|
|
use React\Promise\PromiseInterface;
|
|
|
|
interface DbBasedComponent
|
|
{
|
|
/**
|
|
* @param Db $db
|
|
*
|
|
* @return PromiseInterface;
|
|
*/
|
|
public function initDb(Db $db);
|
|
|
|
/**
|
|
* @return PromiseInterface;
|
|
*/
|
|
public function stopDb();
|
|
}
|