GenerateAutoloadReferenceFile
final class GenerateAutoloadReferenceFile (View source)
| internal |
Generates an 'autoload.php' that includes the autoloader created by Composer.
Methods
Generates the autoload file at the specified location.
Determines whether or not the autoload file has been committed.
Generates a scaffold file path object for the autoload file.
Builds the contents of the autoload file.
Details
static ScaffoldResult
generateAutoload(IOInterface $io, string $package_name, string $web_root, string $vendor)
Generates the autoload file at the specified location.
This only writes a bit of PHP that includes the autoload file that
Composer generated. Drupal does this so that it can guarantee that there
will always be an autoload.php file in a well-known location.
static bool
autoloadFileCommitted(IOInterface $io, string $package_name, string $web_root)
Determines whether or not the autoload file has been committed.
static protected ScaffoldFilePath
autoloadPath(string $package_name, string $web_root)
Generates a scaffold file path object for the autoload file.
static protected string
autoLoadContents(string $relative_autoload_path)
Builds the contents of the autoload file.