Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

AutoloadGenerator::processAutoloads( array $autoloads, bool $scanPsrPackages, string $vendorPath, string $basePath )

Given Composer’s autoloads this will convert them to a version that we can use to generate the manifests.


Description Description

When the $scanPsrPackages argument is true, PSR-4 namespaces are converted to classmaps. When $scanPsrPackages is false, PSR-4 namespaces are not converted to classmaps.

PSR-0 namespaces are always converted to classmaps.


Parameters Parameters

$autoloads

(Required) The autoloads we want to process.

$scanPsrPackages

(Required) Whether or not PSR-4 packages should be converted to a classmap.

$vendorPath

(Required) The path to the vendor directory.

$basePath

(Required) The path to the current directory.


Top ↑

Return Return

(array) $processedAutoloads


Top ↑

Source Source

File: vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.