mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
sf4, change deprecated workflow declaration
This commit is contained in:
parent
1c7dd27fca
commit
ba7abaebf5
@ -18,8 +18,8 @@
|
|||||||
namespace Chill\TaskBundle\Workflow;
|
namespace Chill\TaskBundle\Workflow;
|
||||||
|
|
||||||
use Chill\TaskBundle\Entity\AbstractTask;
|
use Chill\TaskBundle\Entity\AbstractTask;
|
||||||
use Symfony\Component\Workflow\SupportStrategy\SupportStrategyInterface;
|
use Symfony\Component\Workflow\SupportStrategy\WorkflowSupportStrategyInterface;
|
||||||
use Symfony\Component\Workflow\Workflow;
|
use Symfony\Component\Workflow\WorkflowInterface;
|
||||||
use Symfony\Component\Workflow\Event\Event;
|
use Symfony\Component\Workflow\Event\Event;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -27,7 +27,7 @@ use Symfony\Component\Workflow\Event\Event;
|
|||||||
*
|
*
|
||||||
* @author Julien Fastré <julien.fastre@champs-libres.coop>
|
* @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];
|
return $definitions[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function supports(Workflow $workflow, $subject): bool
|
public function supports(WorkflowInterface $workflow, $subject): bool
|
||||||
{
|
{
|
||||||
if (!$subject instanceof AbstractTask) {
|
if (!$subject instanceof AbstractTask) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user