mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
widgets: Prefer using DeploymentApiInterface instead of CoreApi
This commit is contained in:
parent
0911910856
commit
7c58cfdd7b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user