Skip to content

Commit 28c2448

Browse files
Merge pull request #31 from cleverage/hotfix/30
#30 Fix execution from Http Request
2 parents 25d01b6 + 4cd36d6 commit 28c2448

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Controller/ProcessExecuteController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use CleverAge\UiProcessBundle\Message\ProcessExecuteMessage;
1818
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1919
use Symfony\Component\HttpFoundation\JsonResponse;
20-
use Symfony\Component\HttpKernel\Attribute\ValueResolver;
20+
use Symfony\Component\HttpKernel\Attribute\MapRequestPayload;
2121
use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException;
2222
use Symfony\Component\Messenger\MessageBusInterface;
2323
use Symfony\Component\Routing\Attribute\Route;
@@ -27,7 +27,7 @@
2727
class ProcessExecuteController extends AbstractController
2828
{
2929
public function __invoke(
30-
#[ValueResolver('http_process_execution')] HttpProcessExecution $httpProcessExecution,
30+
#[MapRequestPayload] HttpProcessExecution $httpProcessExecution,
3131
ValidatorInterface $validator,
3232
MessageBusInterface $bus,
3333
): JsonResponse {

0 commit comments

Comments
 (0)