I am creating an API that requires that certain headers are present as part of the request.
I assumed I’d be able to use constraints to do this, but it appears that only validates fields that are part of the payload or parameters that make up the request URL.
Is this possible? Even using a custom constraint seems to require that it first checks on a parameter/payload property
Source: Symfony Questions