WordPress at a glance
function is not described

Automattic\Jetpack\Autoloader\jpe7838abe751421865f42aa61338ab306

Autoloader_Handler::activate_autoloader() public WC 1.0

Activates an autoloader using the given plugins and activates it.

{} It's a method of the class: Autoloader_Handler{}

No Hooks.

Return

null. Nothing.

Usage

$Autoloader_Handler = new Autoloader_Handler();
$Autoloader_Handler->activate_autoloader( $plugins );
$plugins(string[]) (required)
The plugins to initialize the autoloader for.

Code of Autoloader_Handler::activate_autoloader() WC 5.2.2

<?php
public function activate_autoloader( $plugins ) {
	global $jetpack_packages_psr4;
	$jetpack_packages_psr4 = array();
	$this->manifest_reader->read_manifests( $plugins, 'vendor/composer/jetpack_autoload_psr4.php', $jetpack_packages_psr4 );

	global $jetpack_packages_classmap;
	$jetpack_packages_classmap = array();
	$this->manifest_reader->read_manifests( $plugins, 'vendor/composer/jetpack_autoload_classmap.php', $jetpack_packages_classmap );

	global $jetpack_packages_filemap;
	$jetpack_packages_filemap = array();
	$this->manifest_reader->read_manifests( $plugins, 'vendor/composer/jetpack_autoload_filemap.php', $jetpack_packages_filemap );

	$loader = new Version_Loader(
		$this->version_selector,
		$jetpack_packages_classmap,
		$jetpack_packages_psr4,
		$jetpack_packages_filemap
	);

	$this->php_autoloader->register_autoloader( $loader );

	// Now that the autoloader is active we can load the filemap.
	$loader->load_filemap();
}