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.

string
name()

Returns the stable command name registered with the framework CLI.

string
string

Describes the maintenance operation shown by the CLI command list.

string
int
run(array $args)

Deletes expired or sufficiently old corrupt sessions and reports the reclaimed session and byte counts.

int

Details

__construct

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.

Return Value

string

description

string description()

Describes the maintenance operation shown by the CLI command list.

Return Value

string

run

int run(array $args)

Deletes expired or sufficiently old corrupt sessions and reports the reclaimed session and byte counts.

Parameters

array $args

Arguments after the executable and command name.

Return Value

int