log_handler = $log_handler ?? new Debug_Log_Handler(); $this->mode_manager = $mode_manager ?? new Debug_Mode_Manager(); } /** * Register debug-related AJAX actions. */ public function register_actions() { add_action( 'wp_ajax_accessibility_audio_tts_get_debug_log', array( $this->log_handler, 'handle_get_debug_log' ) ); add_action( 'wp_ajax_accessibility_audio_tts_enable_debug_mode', array( $this->mode_manager, 'handle_enable_debug_mode' ) ); } }