From 103041802c374efae77fdc280f463ae194903b78 Mon Sep 17 00:00:00 2001 From: James Titcumb Date: Wed, 5 Feb 2025 10:00:15 +0000 Subject: [PATCH] Added override-download-url-method directive for php-ext (#12296) --- res/composer-schema.json | 6 ++++++ src/Composer/Package/PackageInterface.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/res/composer-schema.json b/res/composer-schema.json index efe7a5e59..260406e76 100644 --- a/res/composer-schema.json +++ b/res/composer-schema.json @@ -323,6 +323,12 @@ "example": "my-extension-source", "default": null }, + "override-download-url-method": { + "type": "string", + "description": "If specified, this technique will be used to override the URL that PIE uses to download the asset. The default, if not specified, is composer-default.", + "enum": ["composer-default", "pre-packaged-source"], + "example": "composer-default" + }, "os-families": { "type": "array", "minItems": 1, diff --git a/src/Composer/Package/PackageInterface.php b/src/Composer/Package/PackageInterface.php index d3849781a..aacaae8de 100644 --- a/src/Composer/Package/PackageInterface.php +++ b/src/Composer/Package/PackageInterface.php @@ -23,7 +23,7 @@ use Composer\Repository\RepositoryInterface; * * @phpstan-type AutoloadRules array{psr-0?: array, psr-4?: array, classmap?: list, files?: list, exclude-from-classmap?: list} * @phpstan-type DevAutoloadRules array{psr-0?: array, psr-4?: array, classmap?: list, files?: list} - * @phpstan-type PhpExtConfig array{extension-name?: string, priority?: int, support-zts?: bool, support-nts?: bool, build-path?: string|null, os-families?: non-empty-list, os-families-exclude?: non-empty-list, configure-options?: list} + * @phpstan-type PhpExtConfig array{extension-name?: string, priority?: int, support-zts?: bool, support-nts?: bool, build-path?: string|null, override-download-url-method?: string, os-families?: non-empty-list, os-families-exclude?: non-empty-list, configure-options?: list} */ interface PackageInterface {