class BackfillAvatarVariantsCommand extends AbstractCommand

Populate the `has_avatar_2x` / `has_avatar_3x` columns for users whose avatars predate variant tracking (uploaded before the columns existed, or uploaded by a future code path that didn't set them).

The columns default to `false`, which is *correct* in that the srcset will fall back to the 1× URL — but it loses HiDPI rendering for avatars that do have variant files on disk. Operators can run this command once after upgrade to restore HiDPI for those users. On remote-storage installs the per-row cost is two `exists()` round-trips, so chunked execution is recommended.

Properties

protected InputInterface $input from AbstractCommand
protected OutputInterface $output from AbstractCommand

Methods

int
execute(InputInterface $input, OutputInterface $output)

No description

int
fire()

No description

bool
hasOption(string $name)

No description

void
info(string $message)

No description

void
error(string $message)

Send an error or warning message to the user.

__construct(Factory $filesystemFactory)

No description

void
configure()

No description

Details

protected int execute(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output

Return Value

int

protected int fire()

Return Value

int

protected bool hasOption(string $name)

Parameters

string $name

Return Value

bool

protected void info(string $message)

Parameters

string $message

Return Value

void

protected void error(string $message)

Send an error or warning message to the user.

If possible, this will send the message via STDERR.

Parameters

string $message

Return Value

void

__construct(Factory $filesystemFactory)

Parameters

Factory $filesystemFactory

protected void configure()

Return Value

void