class AbandonedExtensionsFetcher
Constants
| SETTINGS_KEY |
|
| NOTIFY_ADMINS_SETTING |
|
| PENDING_NOTIFICATION_KEY |
Abandoned packages that admins have not yet been notified about. |
| 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 37
__construct( ExtensionManager $extensions, SettingsRepositoryInterface $settings, Client $client, Queue $queue, TranslatorInterface $translator, LoggerInterface|null $logger = null)
at
line 60
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 121
protected array
pendingNotification()
at
line 131
protected array
fetch()
at
line 155
protected void
notifyAdmins(array $newPackages, array $map)
at
line 198
protected array
installedPackageNames()
Returns an associative array of composer package name => true for all installed Flarum extensions.
at
line 214
static array
getCachedMap( SettingsRepositoryInterface $settings)
Return the cached map from settings, or an empty array if not yet fetched.