AXIAM PHP SDK

ManifestApi
in package

FinalYes

Plans and applies a §27.6 manifest (CONTRACT.md §27.6, §27.7).

Two operations, with deliberately different risk profiles:

  • self::plan() writes nothing. It reads the tenant and reports the difference. Safe against production, safe in CI, safe to run on a schedule.
  • self::apply() performs the plan, stopping at the first failure and NOT rolling back (§27.7). What already landed stays landed, and the returned ApplyReport says exactly what that was.

Both build on the ordinary §27 namespace handles — there is no separate manifest endpoint on the server, and this class invents no wire protocol. It is a client-side convergence loop over operations the imperative surface already exposes, which is why everything §27.8 guarantees about that surface (CSRF, cookies, tenant header, TLS, retry, telemetry) holds here too.

Table of Contents

Methods

__construct()  : mixed
apply()  : ApplyReport
Applies a manifest, stopping at the first failure.
plan()  : ManagementPlan
Computes what an apply would do. Sends only reads.

Methods

apply()

Applies a manifest, stopping at the first failure.

public apply(ManagementManifest $manifest) : ApplyReport

Re-plans internally rather than taking a plan as an argument, so what is applied is computed against the tenant's state NOW. A plan handed in from an earlier run describes a tenant that may have moved since, and applying it would either duplicate work or fail on a conflict — either way acting on a world that no longer exists.

Parameters
$manifest : ManagementManifest
Tags
throws
ManifestException

when the manifest is incoherent (checked before any write).

Return values
ApplyReport
On this page

Search results