@@ -162,8 +162,15 @@ public static function preAutoloadDump(Event $event) {
*
* @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
// composer from.
@@ -182,8 +189,16 @@ public static function ensureHtaccess(Event $event) {
* @param \Composer\Installer\PackageEvent $event
* A PackageEvent object to get the configured composer vendor directories
* from.
*
* @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.
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);
@@ -262,8 +279,15 @@ protected static function findPackageKey($package_name) {
/**
* 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);
}
@@ -275,6 +299,8 @@ public static function removeTimeout() {
*
* @return bool
* TRUE on success or FALSE on failure.
*
* @internal
*/
protectedstaticfunctiondeleteRecursive($path){
if(is_file($path)||is_link($path)){
@@ -299,6 +325,8 @@ protected static function deleteRecursive($path) {
$this->expectDeprecation('Unsilenced deprecation: Calling Drupal\Core\Composer\Composer::ensureHtaccess 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');
$this->expectDeprecation('Unsilenced deprecation: Calling Drupal\Core\Composer\Composer::vendorTestCodeCleanup 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');
$this->expectDeprecation('Unsilenced deprecation: Calling Drupal\Core\Composer\Composer::removeTimeout 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');