What problem does it solve?
Adds or modifies service lifecycle handlers (enable, reactivate, disable, terminate) inside loadProcessing in src/Plugin.php. Use when user says 'add lifecycle handler', 'handle termination', 'reactivate service', 'disable service', or modifies service state logic in the backups module. Covers Acronis (type 10665), DirectAdmin, and generic backend branching with correct DB updates, history tracking, and admin email notifications. Do NOT use for settings UI changes (getSettings) or hook registration (getHooks).
Core Features & Use Cases
- Add and chain lifecycle closures (setEnable, setReactivate, setDisable, setTerminate) inside loadProcessing so they always end with ->register().
- Backend branching supports Acronis (10665), DirectAdmin storage, and generic backends with proper DB updates, queue/history entries, and admin notifications.
- History and admin notifications accompany state changes and pending actions.
Quick Start
Open the Plugin source and implement the four lifecycle handlers in loadProcessing(), ensuring the closure variables are declared and the final call is ->register().