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
Details
in AbstractCommand
at
line 22
protected int
execute(InputInterface $input, OutputInterface $output)
at
line 61
protected int
fire()
in AbstractCommand
at
line 32
protected bool
hasOption(string $name)
in AbstractCommand
at
line 37
protected void
info(string $message)
in AbstractCommand
at
line 46
protected void
error(string $message)
Send an error or warning message to the user.
If possible, this will send the message via STDERR.