Skip to content

Commit 4cd36d6

Browse files
committedJan 13, 2025·
#30 Replace ValueResolver by MapRequestPayload to transform request into HttpProcessExecution.
1 parent 1742460 commit 4cd36d6

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)
Please sign in to comment.