Changeset 3423229
- Timestamp:
- 12/18/2025 08:33:41 PM (4 months ago)
- File:
-
- 1 edited
-
pushrelay/trunk/includes/Core/Plugin.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pushrelay/trunk/includes/Core/Plugin.php
r3423220 r3423229 1 1 <?php 2 2 namespace PushRelay\Core; 3 4 use PushRelay\Utils\Health;5 use PushRelay\Push\Worker;6 3 7 4 if ( ! defined( 'ABSPATH' ) ) { … … 9 6 } 10 7 8 /** 9 * Core plugin bootstrap. 10 */ 11 11 final class Plugin { 12 12 13 private static ?self$instance = null;13 private static $instance = null; 14 14 15 15 public static function instance(): self { … … 17 17 self::$instance = new self(); 18 18 } 19 20 19 return self::$instance; 21 20 } 22 21 23 22 private function __construct() { 23 $this->load_dependencies(); 24 24 $this->load_textdomain(); 25 25 $this->init_health(); 26 26 $this->init_worker(); 27 } 28 29 /** 30 * Manually load required class files. 31 */ 32 private function load_dependencies(): void { 33 require_once PUSHRELAY_PLUGIN_DIR . 'includes/Utils/Health.php'; 34 require_once PUSHRELAY_PLUGIN_DIR . 'includes/Push/Worker.php'; 27 35 } 28 36 … … 36 44 37 45 private function init_health(): void { 38 Health::init();46 \PushRelay\Utils\Health::init(); 39 47 } 40 48 41 49 private function init_worker(): void { 42 Worker::init();50 \PushRelay\Push\Worker::init(); 43 51 } 44 52 }
Note: See TracChangeset
for help on using the changeset viewer.