/** * This simply makes sure the autoloaders are registered for the EE_messages system. * * @since 4.5.0 * * @return void */ public static function set_autoloaders() { if (empty(self::$_MSG_PATHS)) { self::_set_messages_paths(); foreach (self::$_MSG_PATHS as $path) { EEH_Autoloader::register_autoloaders_for_each_file_in_folder($path); } // add aliases EEH_Autoloader::add_alias('EE_messages', 'EE_messages'); EEH_Autoloader::add_alias('EE_messenger', 'EE_messenger'); } }