Class LaravelUi5\OData\Service\ReadContext

final

The read-side collector — the read analog of a write-side transaction seal.

A single read can touch many targets (a root set plus its $expand navigation targets). A {@see \LaravelUi5\OData\Service\Contracts\ReadAuthorizerInterface} records a verdict per target into this collector; the controller / engine then reads it to shape the response:

  • a hard denial (a primary / root target) → the controller answers a 403 {@see \LaravelUi5\OData\Exception\ForbiddenException};
    • a drop (an $expand target) → the engine prunes it from serialization and emits a sap-messages warning (the honest-partial model — added in the next slice);
    • no verdict recorded → the read proceeds.

The default {@see AllowAllReadAuthorizer} records nothing, so an unconfigured OData proceeds exactly as before.

Methods