function GenerateAutoloadRuntimeReferenceFile::autoloadRuntimeFileCommitted
Same name and namespace in other branches
- 11.x composer/Plugin/Scaffold/GenerateAutoloadRuntimeReferenceFile.php \Drupal\Composer\Plugin\Scaffold\GenerateAutoloadRuntimeReferenceFile::autoloadRuntimeFileCommitted()
Determines whether or not the autoload_runtime file has been committed.
Parameters
\Composer\IO\IOInterface $io: IOInterface to write to.
string $package_name: The name of the package defining the autoload_runtime file (the root package).
string $web_root: The path to the web root.
Return value
bool True if autoload_runtime.php file exists and has been committed to the repository
1 call to GenerateAutoloadRuntimeReferenceFile::autoloadRuntimeFileCommitted()
- Handler::scaffold in composer/
Plugin/ Scaffold/ Handler.php - Copies all scaffold files from source to destination.
File
-
composer/
Plugin/ Scaffold/ GenerateAutoloadRuntimeReferenceFile.php, line 67
Class
- GenerateAutoloadRuntimeReferenceFile
- Generates an 'autoload_runtime.php' that includes the Symfony_runtime loader.
Namespace
Drupal\Composer\Plugin\ScaffoldCode
public static function autoloadRuntimeFileCommitted(IOInterface $io, string $package_name, string $web_root) : bool {
$autoload_runtime_path = static::autoloadRuntimePath($package_name, $web_root);
$autoload_runtime_file = $autoload_runtime_path->fullPath();
$location = dirname($autoload_runtime_file);
if (!file_exists($autoload_runtime_file)) {
return FALSE;
}
return Git::checkTracked($io, $autoload_runtime_file, $location);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.