Skip to content

Commit

Permalink
#30 Replace ValueResolver by MapRequestPayload to transform request i…
Browse files Browse the repository at this point in the history
…nto HttpProcessExecution.
  • Loading branch information
clever-age-gtonon committed Jan 13, 2025
1 parent 1742460 commit 4cd36d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/ProcessExecuteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use CleverAge\UiProcessBundle\Message\ProcessExecuteMessage;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpKernel\Attribute\ValueResolver;
use Symfony\Component\HttpKernel\Attribute\MapRequestPayload;
use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException;
use Symfony\Component\Messenger\MessageBusInterface;
use Symfony\Component\Routing\Attribute\Route;
Expand All @@ -27,7 +27,7 @@
class ProcessExecuteController extends AbstractController
{
public function __invoke(
#[ValueResolver('http_process_execution')] HttpProcessExecution $httpProcessExecution,
#[MapRequestPayload] HttpProcessExecution $httpProcessExecution,
ValidatorInterface $validator,
MessageBusInterface $bus,
): JsonResponse {
Expand Down

0 comments on commit 4cd36d6

Please sign in to comment.