diff --git a/src/modules/fingerprint/FingerprintModule.php b/src/modules/fingerprint/FingerprintModule.php index a0c0272..aa423b4 100644 --- a/src/modules/fingerprint/FingerprintModule.php +++ b/src/modules/fingerprint/FingerprintModule.php @@ -64,14 +64,13 @@ class FingerprintModule implements ModuleInterface { } /** - * Крон-задачи модуля + * CLI-команды модуля * - * Fingerprint не имеет собственных крон-задач. + * Fingerprint не имеет CLI-команд. * - * @return array + * @param CommandRegistry $registry */ - public function registerCrons(): array { - return []; + public function registerCommands(CommandRegistry $registry): void { } /** @@ -82,4 +81,16 @@ class FingerprintModule implements ModuleInterface { public function getEventSubscribers(): array { return []; } + + /** + * {@inheritdoc} + */ + public function install(): void { + } + + /** + * {@inheritdoc} + */ + public function uninstall(): void { + } } diff --git a/src/modules/fingerprint/module.json b/src/modules/fingerprint/module.json index 2e47eb0..2a1320e 100644 --- a/src/modules/fingerprint/module.json +++ b/src/modules/fingerprint/module.json @@ -1,7 +1,6 @@ { "name": "fingerprint", + "description": "Stream fingerprint overlay module", "version": "1.0.0", - "description": "Stream fingerprinting for viewer identification", - "requires_core": ">=2.0", - "dependencies": [] + "requires_core": ">=2.0" } \ No newline at end of file diff --git a/src/modules/magscan/MagscanModule.php b/src/modules/magscan/MagscanModule.php index 8c611e9..295df60 100644 --- a/src/modules/magscan/MagscanModule.php +++ b/src/modules/magscan/MagscanModule.php @@ -62,14 +62,13 @@ class MagscanModule implements ModuleInterface { } /** - * Крон-задачи модуля + * CLI-команды модуля * - * MAGSCAN не имеет собственных крон-задач. + * MAGSCAN не имеет CLI-команд. * - * @return array + * @param CommandRegistry $registry */ - public function registerCrons(): array { - return []; + public function registerCommands(CommandRegistry $registry): void { } /** @@ -80,4 +79,16 @@ class MagscanModule implements ModuleInterface { public function getEventSubscribers(): array { return []; } + + /** + * {@inheritdoc} + */ + public function install(): void { + } + + /** + * {@inheritdoc} + */ + public function uninstall(): void { + } } diff --git a/src/modules/magscan/module.json b/src/modules/magscan/module.json index 3442c5f..8753e3a 100644 --- a/src/modules/magscan/module.json +++ b/src/modules/magscan/module.json @@ -1,7 +1,6 @@ { "name": "magscan", + "description": "MAG device scanning module", "version": "1.0.0", - "description": "MAG device scanning whitelist/blacklist management", - "requires_core": ">=2.0", - "dependencies": [] + "requires_core": ">=2.0" } \ No newline at end of file diff --git a/src/modules/ministra/MinistraModule.php b/src/modules/ministra/MinistraModule.php index 0cbc23c..2e44036 100644 --- a/src/modules/ministra/MinistraModule.php +++ b/src/modules/ministra/MinistraModule.php @@ -70,14 +70,13 @@ class MinistraModule implements ModuleInterface { } /** - * Крон-задачи модуля + * CLI-команды модуля * - * Ministra не имеет собственных крон-задач. + * Ministra не имеет CLI-команд. * - * @return array + * @param CommandRegistry $registry */ - public function registerCrons(): array { - return []; + public function registerCommands(CommandRegistry $registry): void { } /** @@ -88,4 +87,16 @@ class MinistraModule implements ModuleInterface { public function getEventSubscribers(): array { return []; } + + /** + * {@inheritdoc} + */ + public function install(): void { + } + + /** + * {@inheritdoc} + */ + public function uninstall(): void { + } } diff --git a/src/modules/ministra/module.json b/src/modules/ministra/module.json index 41fa3e4..3fcedf3 100644 --- a/src/modules/ministra/module.json +++ b/src/modules/ministra/module.json @@ -1,7 +1,6 @@ { "name": "ministra", + "description": "Ministra portal integration module", "version": "1.0.0", - "description": "Ministra (Stalker Portal) for MAG STB devices", - "requires_core": ">=2.0", - "dependencies": [] + "requires_core": ">=2.0" } \ No newline at end of file diff --git a/src/modules/plex/PlexModule.php b/src/modules/plex/PlexModule.php index b86eb16..1c54f5d 100644 --- a/src/modules/plex/PlexModule.php +++ b/src/modules/plex/PlexModule.php @@ -120,18 +120,13 @@ class PlexModule implements ModuleInterface { } /** - * Крон-задачи модуля + * CLI-команды модуля * - * @return array + * @param CommandRegistry $registry */ - public function registerCrons(): array { - return [ - [ - 'class' => PlexCron::class, - 'method' => 'run', - 'interval' => 60, - ], - ]; + public function registerCommands(CommandRegistry $registry): void { + $registry->register(new PlexCronJob()); + $registry->register(new PlexItemCommand()); } /** @@ -142,4 +137,16 @@ class PlexModule implements ModuleInterface { public function getEventSubscribers(): array { return []; } + + /** + * {@inheritdoc} + */ + public function install(): void { + } + + /** + * {@inheritdoc} + */ + public function uninstall(): void { + } } diff --git a/src/modules/plex/module.json b/src/modules/plex/module.json index fc708c7..affe114 100644 --- a/src/modules/plex/module.json +++ b/src/modules/plex/module.json @@ -1,7 +1,6 @@ { "name": "plex", + "description": "Plex integration module", "version": "1.0.0", - "description": "Plex Media Server integration and sync", - "requires_core": ">=2.0", - "dependencies": [] + "requires_core": ">=2.0" } \ No newline at end of file diff --git a/src/modules/theft-detection/TheftDetectionModule.php b/src/modules/theft-detection/TheftDetectionModule.php index 82e64dd..8ec5698 100644 --- a/src/modules/theft-detection/TheftDetectionModule.php +++ b/src/modules/theft-detection/TheftDetectionModule.php @@ -63,16 +63,11 @@ class TheftDetectionModule implements ModuleInterface { } /** - * Крон-задачи модуля + * CLI-команды модуля * - * Кеш theft_detection генерируется крон-задачей ядра - * (cache_engine.php → generateTheftDetection()), а не модулем. - * - * @return array + * @param CommandRegistry $registry */ - public function registerCrons(): array { - // Данные генерируются core cache_engine.php — модуль только отображает - return []; + public function registerCommands(CommandRegistry $registry): void { } /** @@ -83,4 +78,16 @@ class TheftDetectionModule implements ModuleInterface { public function getEventSubscribers(): array { return []; } + + /** + * {@inheritdoc} + */ + public function install(): void { + } + + /** + * {@inheritdoc} + */ + public function uninstall(): void { + } } diff --git a/src/modules/theft-detection/module.json b/src/modules/theft-detection/module.json index 7784661..a20346c 100644 --- a/src/modules/theft-detection/module.json +++ b/src/modules/theft-detection/module.json @@ -1,7 +1,6 @@ { "name": "theft-detection", + "description": "Stream theft detection module", "version": "1.0.0", - "description": "VOD theft detection and usage monitoring", - "requires_core": ">=2.0", - "dependencies": [] + "requires_core": ">=2.0" } \ No newline at end of file diff --git a/src/modules/tmdb/TmdbModule.php b/src/modules/tmdb/TmdbModule.php index 499f8ed..557e334 100644 --- a/src/modules/tmdb/TmdbModule.php +++ b/src/modules/tmdb/TmdbModule.php @@ -69,23 +69,13 @@ class TmdbModule implements ModuleInterface { } /** - * Крон-задачи модуля + * CLI-команды модуля * - * @return array + * @param CommandRegistry $registry */ - public function registerCrons(): array { - return [ - [ - 'class' => TmdbCron::class, - 'method' => 'run', - 'interval' => 3600, - ], - [ - 'class' => TmdbPopularCron::class, - 'method' => 'run', - 'interval' => 86400, - ], - ]; + public function registerCommands(CommandRegistry $registry): void { + $registry->register(new TmdbCronJob()); + $registry->register(new TmdbPopularCronJob()); } /** @@ -96,4 +86,16 @@ class TmdbModule implements ModuleInterface { public function getEventSubscribers(): array { return []; } + + /** + * {@inheritdoc} + */ + public function install(): void { + } + + /** + * {@inheritdoc} + */ + public function uninstall(): void { + } } diff --git a/src/modules/tmdb/module.json b/src/modules/tmdb/module.json index fbfb3de..7c51046 100644 --- a/src/modules/tmdb/module.json +++ b/src/modules/tmdb/module.json @@ -1,7 +1,6 @@ { "name": "tmdb", + "description": "TMDB metadata integration module", "version": "1.0.0", - "description": "TMDB (The Movie Database) integration for metadata fetching", - "requires_core": ">=2.0", - "dependencies": [] + "requires_core": ">=2.0" } \ No newline at end of file diff --git a/src/modules/watch/WatchModule.php b/src/modules/watch/WatchModule.php index 5d67c23..b333ac8 100644 --- a/src/modules/watch/WatchModule.php +++ b/src/modules/watch/WatchModule.php @@ -124,18 +124,13 @@ class WatchModule implements ModuleInterface { } /** - * Крон-задачи модуля + * CLI-команды модуля * - * @return array + * @param CommandRegistry $registry */ - public function registerCrons(): array { - return [ - [ - 'class' => WatchCron::class, - 'method' => 'run', - 'interval' => 60, - ], - ]; + public function registerCommands(CommandRegistry $registry): void { + $registry->register(new WatchCronJob()); + $registry->register(new WatchItemCommand()); } /** @@ -146,4 +141,16 @@ class WatchModule implements ModuleInterface { public function getEventSubscribers(): array { return []; } + + /** + * {@inheritdoc} + */ + public function install(): void { + } + + /** + * {@inheritdoc} + */ + public function uninstall(): void { + } } diff --git a/src/modules/watch/module.json b/src/modules/watch/module.json index 56981cc..792160b 100644 --- a/src/modules/watch/module.json +++ b/src/modules/watch/module.json @@ -1,7 +1,6 @@ { "name": "watch", + "description": "Watch activity tracking module", "version": "1.0.0", - "description": "Watch Folder / Recording (DVR) module", - "requires_core": ">=2.0", - "dependencies": [] + "requires_core": ">=2.0" } \ No newline at end of file