Add docblock to support state processor

This commit is contained in:
2025-04-03 13:19:41 +02:00
parent 5e673010c1
commit 2c6d09f8f2
+5 -1
View File
@@ -21,9 +21,13 @@ class SupportStateProcessor implements ProcessorInterface
private EntityManagerInterface $entityManager,
) {}
/**
* @param SupportApiResource $data
*
* @return SupportApiResource
*/
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
{
// Verify if the user is authenticated
$user = $this->authService->getUser();
if (!$user) {
throw new AuthenticationException();