mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
legacy: Avoid CoreApi in DeploymentLinkForm
This commit is contained in:
parent
3397b7d27b
commit
b6fd60a39f
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user