You appear to be a bot. Output may be restricted
Description
Resets the active autoloader and all related global state.
Usage
Autoloader_Handler::reset_autoloader();
Parameters
Returns
void
Source
File name: woocommerce/vendor/automattic/jetpack-autoloader/src/class-autoloader-handler.php
Lines:
1 to 18 of 18
public function reset_autoloader() { $this->php_autoloader->unregister_autoloader(); $this->hook_manager->reset(); // Clear all of the autoloader globals so that older autoloaders don't do anything strange. global $jetpack_autoloader_latest_version; $jetpack_autoloader_latest_version = null; global $jetpack_packages_classmap; $jetpack_packages_classmap = array(); // Must be array to avoid exceptions in old autoloaders! global $jetpack_packages_psr4; $jetpack_packages_psr4 = array(); // Must be array to avoid exceptions in old autoloaders! global $jetpack_packages_filemap; $jetpack_packages_filemap = array(); // Must be array to avoid exceptions in old autoloaders! }