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