sf4, change deprecated workflow declaration

This commit is contained in:
Tchama 2020-07-28 12:29:48 +02:00
parent 1c7dd27fca
commit ba7abaebf5

View File

@ -18,8 +18,8 @@
namespace Chill\TaskBundle\Workflow;
use Chill\TaskBundle\Entity\AbstractTask;
use Symfony\Component\Workflow\SupportStrategy\SupportStrategyInterface;
use Symfony\Component\Workflow\Workflow;
use Symfony\Component\Workflow\SupportStrategy\WorkflowSupportStrategyInterface;
use Symfony\Component\Workflow\WorkflowInterface;
use Symfony\Component\Workflow\Event\Event;
/**
@ -27,7 +27,7 @@ use Symfony\Component\Workflow\Event\Event;
*
* @author Julien Fastré <julien.fastre@champs-libres.coop>
*/
class TaskWorkflowManager implements SupportStrategyInterface
class TaskWorkflowManager implements WorkflowSupportStrategyInterface
{
/**
*
@ -66,7 +66,7 @@ class TaskWorkflowManager implements SupportStrategyInterface
return $definitions[0];
}
public function supports(Workflow $workflow, $subject): bool
public function supports(WorkflowInterface $workflow, $subject): bool
{
if (!$subject instanceof AbstractTask) {
return false;