StagedUploadLease
final class StagedUploadLease (View source)
| internal | UploadStaging owns lease creation and release. |
Keeps a shared lock alive while validators and publication consume one staging snapshot.
Methods
__construct(resource $handle)
Retains the already locked staging handle for the snapshot lifecycle.
release()
Releases the snapshot lock exactly once so its file can be removed or reclaimed.
void
Releases an abandoned in-process lease while leaving its snapshot for age-based orphan cleanup.
Details
__construct
__construct(resource $handle)
Retains the already locked staging handle for the snapshot lifecycle.
release
void
release()
Releases the snapshot lock exactly once so its file can be removed or reclaimed.
__destruct
__destruct()
Releases an abandoned in-process lease while leaving its snapshot for age-based orphan cleanup.