legacy: Avoid CoreApi in DeploymentLinkForm

This commit is contained in:
Markus Frosch 2018-03-08 14:25:18 +01:00
parent 3397b7d27b
commit b6fd60a39f
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ namespace Icinga\Module\Director\Forms;
use Icinga\Authentication\Auth;
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\Deployment\DeploymentInfo;
use Icinga\Module\Director\IcingaConfig\IcingaConfig;
@ -20,7 +20,7 @@ class DeploymentLinkForm extends DirectorForm
/** @var Auth */
protected $auth;
/** @var CoreApi */
/** @var DeploymentApiInterface */
protected $api;
/** @var Db */
@ -31,7 +31,7 @@ class DeploymentLinkForm extends DirectorForm
* @param Auth $auth
* @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->setAuth($auth);