Skip to content
Corex

SubmissionRestGateway

Corex\Config\Submissions\SubmissionRestGateway · class · Config layer

Applies the shared nonce pipeline and canonical envelopes to Inbox REST actions.

__construct(Pipeline $pipeline, MiddlewareResolver $middleware, SubmissionAccessPolicy $access)

Section titled “__construct(Pipeline $pipeline, MiddlewareResolver $middleware, SubmissionAccessPolicy $access)”

What every Inbox route asks before a handler runs: may this person manage submissions at all. The handlers ask again, and ask more: which submissions, and with a nonce for a change. This is here so the route says it is guarded. Registered open, it was refused to the same people and listed as public.

read(WP_REST_Request $request, callable $handler): WP_REST_Response

Section titled “read(WP_REST_Request $request, callable $handler): WP_REST_Response”

mutate(WP_REST_Request $request, array $shape, callable $handler): WP_REST_Response

Section titled “mutate(WP_REST_Request $request, array $shape, callable $handler): WP_REST_Response”