diff --git a/lib/Workflow/GlobalAction.php b/lib/Workflow/GlobalAction.php index 288d6fd8bce..150ce3758e7 100644 --- a/lib/Workflow/GlobalAction.php +++ b/lib/Workflow/GlobalAction.php @@ -19,7 +19,7 @@ use Pimcore\Workflow\Notes\CustomHtmlServiceInterface; use Pimcore\Workflow\Notes\NotesAwareInterface; use Pimcore\Workflow\Notes\NotesAwareTrait; -use Symfony\Component\Workflow\Workflow; +use Symfony\Component\Workflow\WorkflowInterface; class GlobalAction implements NotesAwareInterface { @@ -80,7 +80,7 @@ public function getGuard(): ?string return $this->options['guard'] ?? null; } - public function isGuardValid(Workflow $workflow, object $subject): bool + public function isGuardValid(WorkflowInterface $workflow, object $subject): bool { if (empty($this->getGuard())) { return true; diff --git a/lib/Workflow/Place/PlaceConfig.php b/lib/Workflow/Place/PlaceConfig.php index 6ace40912a8..3b66a05e3fa 100644 --- a/lib/Workflow/Place/PlaceConfig.php +++ b/lib/Workflow/Place/PlaceConfig.php @@ -18,7 +18,7 @@ use Pimcore\Helper\ContrastColor; use Pimcore\Workflow\ExpressionService; -use Symfony\Component\Workflow\Workflow; +use Symfony\Component\Workflow\WorkflowInterface; class PlaceConfig { @@ -78,7 +78,7 @@ public function isVisibleInHeader(): bool return $this->placeConfigArray['visibleInHeader']; } - public function getObjectLayout(Workflow $workflow, object $subject): ?string + public function getObjectLayout(WorkflowInterface $workflow, object $subject): ?string { return $this->getPermissions($workflow, $subject)['objectLayout'] ?? null; } @@ -98,7 +98,7 @@ public function getPlaceConfigArray(): array return $this->placeConfigArray; } - public function getPermissions(Workflow $workflow, object $subject): array + public function getPermissions(WorkflowInterface $workflow, object $subject): array { foreach ($this->placeConfigArray['permissions'] ?? [] as $permission) { $condition = $permission['condition'] ?? false; @@ -112,7 +112,7 @@ public function getPermissions(Workflow $workflow, object $subject): array return []; } - public function getUserPermissions(Workflow $workflow, object $subject): array + public function getUserPermissions(WorkflowInterface $workflow, object $subject): array { $result = [];