widgets: Prefer using DeploymentApiInterface instead of CoreApi

This commit is contained in:
Markus Frosch 2018-05-17 13:20:03 +02:00
parent 0911910856
commit 7c58cfdd7b

View File

@ -3,7 +3,7 @@
namespace Icinga\Module\Director\Web\Widget;
use dipl\Html\HtmlDocument;
use Icinga\Module\Director\Core\CoreApi;
use Icinga\Module\Director\Core\DeploymentApiInterface;
use Icinga\Module\Director\Db;
use Icinga\Module\Director\Forms\DeployConfigForm;
use Icinga\Module\Director\IcingaConfig\IcingaConfig;
@ -25,13 +25,13 @@ class DeployedConfigInfoHeader extends HtmlDocument
/** @var Db */
protected $db;
/** @var CoreApi */
/** @var DeploymentApiInterface */
protected $api;
public function __construct(
IcingaConfig $config,
Db $db,
CoreApi $api,
DeploymentApiInterface $api,
$deploymentId = null
) {
$this->config = $config;