Shouldn't the Aura\Payload\PayloadFactory have more methods; especially when creating payloads of different statuses.
E.g.
$foundPayload = $this->payloadFactory->found()->setOutput(...);
$notFoundPayload = $this->payloadFactory->notFound()->setMessages(['Resource is missing.']);
I can write the PR if you do want this functionality.
Shouldn't the
Aura\Payload\PayloadFactoryhave more methods; especially when creating payloads of different statuses.E.g.
I can write the PR if you do want this functionality.