Skip to content

Commit 607fa10

Browse files
authored
Merge pull request #98 from coldic3/feature/use-workflow-interface
Use Workflow interface instead of implementation
2 parents 1bbbaeb + 87c9c9a commit 607fa10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Message/Handler/GenerateBatchHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
use Symfony\Component\Validator\ConstraintViolationInterface;
4141
use Symfony\Component\Validator\Validator\ValidatorInterface;
4242
use Symfony\Component\Workflow\Registry;
43-
use Symfony\Component\Workflow\Workflow;
43+
use Symfony\Component\Workflow\WorkflowInterface;
4444
use Throwable;
4545
use Twig\Environment;
4646
use Webmozart\Assert\Assert;
@@ -300,7 +300,7 @@ private function resetRequestContext(): void
300300
$this->urlGenerator->setContext($this->initialRequestContext);
301301
}
302302

303-
private function getWorkflow(FeedInterface $feed): Workflow
303+
private function getWorkflow(FeedInterface $feed): WorkflowInterface
304304
{
305305
try {
306306
$workflow = $this->workflowRegistry->get($feed, FeedGraph::GRAPH);
@@ -324,7 +324,7 @@ private function openStream()
324324
return fopen('php://temp', 'w+b');
325325
}
326326

327-
private function applyErrorTransition(Workflow $workflow, FeedInterface $feed): void
327+
private function applyErrorTransition(WorkflowInterface $workflow, FeedInterface $feed): void
328328
{
329329
// if the feed is already errored we won't want to throw an exception
330330
if ($feed->isErrored()) {

0 commit comments

Comments
 (0)