* Add vendor classes to Composer's static classmap.
*
@@ -149,169 +85,6 @@ public static function preAutoloadDump(Event $event) {
$package->setAutoload($autoload);
}
/**
* Ensures that .htaccess and web.config files are present in Composer root.
*
* @param \Composer\Script\Event $event
* The event.
*
* @deprecated in drupal:9.5.0 and is removed from drupal:10.0.0. Any
* "scripts" section mentioning this in composer.json can be removed and
* replaced with the drupal/core-vendor-hardening Composer plugin, as needed.
*
* @see https://www.drupal.org/node/3260624
*/
publicstaticfunctionensureHtaccess(Event$event){
trigger_error('Calling '.__METHOD__.' from composer.json is deprecated in drupal:9.5.0 and is removed from drupal:10.0.0. Any "scripts" section mentioning this in composer.json can be removed and replaced with the drupal/core-vendor-hardening Composer plugin, as needed. See https://www.drupal.org/node/3260624',E_USER_DEPRECATED);
// The current working directory for composer scripts is where you run
trigger_error('Calling '.__METHOD__.' from composer.json is deprecated in drupal:9.5.0 and is removed from drupal:10.0.0. Any "scripts" section mentioning this in composer.json can be removed and replaced with the drupal/core-vendor-hardening Composer plugin, as needed. See https://www.drupal.org/node/3260624',E_USER_DEPRECATED);
// Handle any mismatch in case between the package name and array key.
// For example, the array key 'mikey179/vfsStream' needs to be found
// when composer returns a package name of 'mikey179/vfsstream'.
foreach(static::$packageToCleanupas$key=>$dirs){
if(strtolower($key)===$package_name){
$package_key=$key;
break;
}
}
}
return$package_key;
}
/**
* Removes Composer's timeout so that scripts can run indefinitely.
*
* @deprecated in drupal:9.5.0 and is removed from drupal:10.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3260624
*/
publicstaticfunctionremoveTimeout(){
trigger_error('Calling '.__METHOD__.' from composer.json is deprecated in drupal:9.5.0 and is removed from drupal:10.0.0. There is no replacement. See https://www.drupal.org/node/3260624',E_USER_DEPRECATED);
ProcessExecutor::setTimeout(0);
}
/**
* Helper method to remove directories and the files they contain.