|
@@ -10,6 +10,7 @@ use Symfony\Component\HttpKernel\Event\ControllerEvent;
|
|
|
use Symfony\Component\HttpKernel\KernelEvents;
|
|
|
use Symfony\Component\Workflow\Attribute\AsCompletedListener;
|
|
|
use Symfony\Component\Workflow\Attribute\AsEnteredListener;
|
|
|
+use Symfony\Component\Workflow\Attribute\AsTransitionListener;
|
|
|
use Symfony\Component\Workflow\Event\Event;
|
|
|
use Symfony\Component\Workflow\WorkflowInterface;
|
|
|
|
|
@@ -51,7 +52,7 @@ class CounterManager
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- #[AsCompletedListener('countdown', Counter::TRANSITION_TO_READY)]
|
|
|
+ #[AsTransitionListener('countdown', Counter::TRANSITION_TO_READY)]
|
|
|
public function toReady(Event $event): void
|
|
|
{
|
|
|
/** @var Counter $counter */
|