Files
shadowdaoandClaude Sonnet 5.5 68bd917660
Test and Release / test (push) Successful in 1m28s
Test and Release / release (push) Successful in 4s
LICENSE, clean uninstall (opt-in data removal), privacy policy text, Update URI header
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 14:00:04 -08:00

31 lines
786 B
PHP

<?php
declare( strict_types=1 );
namespace StreamGoals\Core;
/**
* Boots feature modules. Each module exposes a static register() that adds its own hooks;
* classes that do not exist yet are skipped so modules can land independently.
*/
final class Plugin {
private const MODULES = array(
\StreamGoals\Rest\DonateController::class,
\StreamGoals\Rest\WebhookController::class,
\StreamGoals\Rest\OverlayController::class,
\StreamGoals\Admin\Admin::class,
\StreamGoals\Update\Updater::class,
);
public static function boot(): void {
Installer::maybe_upgrade();
Maintenance::register();
Privacy::register();
foreach ( self::MODULES as $module ) {
if ( class_exists( $module ) && method_exists( $module, 'register' ) ) {
$module::register();
}
}
}
}