ChunkUploadCleanupCommand
final class ChunkUploadCleanupCommand implements CommandInterface (View source)
Provides the operational CLI entry point that reclaims expired sessions and orphaned upload snapshots.
It uses only filesystem session state, so cleanup remains available outside an HTTP request scope.
Methods
Initializes cleanup with the same expiry policy and private session store used by chunk uploads.
Returns the stable command name registered with the framework CLI.
Describes the maintenance operation shown by the CLI command list.
Deletes expired or sufficiently old corrupt sessions and reports the reclaimed session and byte counts.
Details
__construct
__construct(ChunkUploadConfig $config, FilesystemChunkUploadSessionStore $store, UploadStaging $staging, CommandOutput $output)
Initializes cleanup with the same expiry policy and private session store used by chunk uploads.
name
string
name()
Returns the stable command name registered with the framework CLI.
description
string
description()
Describes the maintenance operation shown by the CLI command list.
run
int
run(array $args)
Deletes expired or sufficiently old corrupt sessions and reports the reclaimed session and byte counts.