register(); accessibility_audio_tts_debug_log( 'Enhanced autoloader registered successfully' ); } /** * Get current Enhanced Autoloader instance. * * @return \Accessibility_Audio_TTS\Core\Bootstrap\Enhanced_Autoloader|null. */ public static function get_autoloader() { return self::$enhanced_autoloader; } /** * Register external namespace root. * * @param string $top_level_namespace Top-level namespace (e.g., 'Pro'). * @param string $absolute_includes_path Absolute path to includes directory. * @return void. */ public static function register_external_namespace_root( $top_level_namespace, $absolute_includes_path ) { if ( self::$enhanced_autoloader && method_exists( self::$enhanced_autoloader, 'add_external_namespace_root' ) ) { self::$enhanced_autoloader->add_external_namespace_root( $top_level_namespace, $absolute_includes_path ); } } /** * Check PHP version compatibility. * * @return bool True if compatible, false otherwise. */ public static function check_php_version() { if ( version_compare( PHP_VERSION, '7.4', '<' ) ) { add_action( 'admin_notices', function () { ?>