legacy: Avoid CoreApi in DeploymentLinkForm

This commit is contained in:
Markus Frosch 2018-03-08 14:25:18 +01:00
parent 3397b7d27b
commit b6fd60a39f

View File

@ -4,7 +4,7 @@ namespace Icinga\Module\Director\Forms;
use Icinga\Authentication\Auth; use Icinga\Authentication\Auth;
use Icinga\Exception\IcingaException; use Icinga\Exception\IcingaException;
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\Deployment\DeploymentInfo; use Icinga\Module\Director\Deployment\DeploymentInfo;
use Icinga\Module\Director\IcingaConfig\IcingaConfig; use Icinga\Module\Director\IcingaConfig\IcingaConfig;
@ -20,7 +20,7 @@ class DeploymentLinkForm extends DirectorForm
/** @var Auth */ /** @var Auth */
protected $auth; protected $auth;
/** @var CoreApi */ /** @var DeploymentApiInterface */
protected $api; protected $api;
/** @var Db */ /** @var Db */
@ -31,7 +31,7 @@ class DeploymentLinkForm extends DirectorForm
* @param Auth $auth * @param Auth $auth
* @return static * @return static
*/ */
public static function create(Db $db, DeploymentInfo $info, Auth $auth, CoreApi $api) public static function create(Db $db, DeploymentInfo $info, Auth $auth, DeploymentApiInterface $api)
{ {
$self = static::load(); $self = static::load();
$self->setAuth($auth); $self->setAuth($auth);