class AbandonedExtensionsFetcher
Constants
| SETTINGS_KEY |
|
| NOTIFY_ADMINS_SETTING |
|
| SOURCE_URL |
|
Methods
No description
Fetch the upstream abandoned extensions list, filter to installed packages, persist the result to settings, and optionally notify admins.
Returns an associative array of composer package name => true for all installed Flarum extensions.
Return the cached map from settings, or an empty array if not yet fetched.
Details
at
line 30
__construct(ExtensionManager $extensions, SettingsRepositoryInterface $settings, Client $client, Queue $queue, TranslatorInterface $translator)
at
line 52
array
sync(bool $notify = false, bool $manual = false)
Fetch the upstream abandoned extensions list, filter to installed packages, persist the result to settings, and optionally notify admins.
When $notify is true and the notify-admins setting is enabled: - On a scheduled (automatic) run: only notifies about packages newly flagged since the last sync, to avoid repeating the same email every week. - On a manual run ($manual = true): notifies about all currently installed abandoned extensions, since the admin explicitly requested the check.
at
line 86
protected array
fetch()
at
line 110
protected void
notifyAdmins(array $newPackages, array $map)
at
line 142
protected array
installedPackageNames()
Returns an associative array of composer package name => true for all installed Flarum extensions.
at
line 158
static array
getCachedMap(SettingsRepositoryInterface $settings)
Return the cached map from settings, or an empty array if not yet fetched.