From 9e2ff93d845e3428f0a45a823ba4d70971ed8393 Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Thu, 11 Apr 2019 22:54:20 +0800 Subject: [PATCH 1/3] Install phpda with composer-bin-plugin instead of phar download Phar is no longer available. --- resources/tools.json | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/resources/tools.json b/resources/tools.json index f55929fd..3d4eb9b4 100644 --- a/resources/tools.json +++ b/resources/tools.json @@ -381,13 +381,10 @@ "summary": "Generates dependency graphs", "website": "https://mamuz.github.io/PhpDependencyAnalysis/", "command": { - "file-download": { - "url": "https://raw.github.com/mamuz/PhpDependencyAnalysis/master/download/phpda.pubkey", - "file": "%target-dir%/phpda.pubkey" - }, - "phar-download": { - "phar": "https://raw.github.com/mamuz/PhpDependencyAnalysis/master/download/phpda", - "bin": "%target-dir%/phpda" + "composer-bin-plugin": { + "package": "mamuz/php-dependency-analysis", + "namespace": "tools", + "links": {"%target-dir%/phpda": "phpda"} } }, "test": "phpda list", From 30a299befb62a20f84c685634afa06345f1f0397 Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Thu, 11 Apr 2019 23:08:29 +0800 Subject: [PATCH 2/3] Install tools requiring a legacy nikic/php-parser in their own namespace --- resources/tools.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/tools.json b/resources/tools.json index 3d4eb9b4..c0a4aeaa 100644 --- a/resources/tools.json +++ b/resources/tools.json @@ -383,7 +383,7 @@ "command": { "composer-bin-plugin": { "package": "mamuz/php-dependency-analysis", - "namespace": "tools", + "namespace": "legacy-php-parser", "links": {"%target-dir%/phpda": "phpda"} } }, @@ -649,7 +649,7 @@ "command": { "composer-bin-plugin": { "package": "psecio/parse:dev-master", - "namespace": "psecio-parse", + "namespace": "legacy-php-parser", "links": {"%target-dir%/psecio-parse": "psecio-parse"} } }, From a49bc3c3e8cdf66b23d4d9eb70a7c34ce24fbf91 Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Thu, 11 Apr 2019 23:13:45 +0800 Subject: [PATCH 3/3] Move php-coupling-detector and php-assumptions back to the tools namespace --- resources/tools.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/tools.json b/resources/tools.json index c0a4aeaa..a658a6c1 100644 --- a/resources/tools.json +++ b/resources/tools.json @@ -201,7 +201,7 @@ "command": { "composer-bin-plugin": { "package": "akeneo/php-coupling-detector", - "namespace": "php-coupling-detector", + "namespace": "tools", "links": {"%target-dir%/php-coupling-detector": "php-coupling-detector"} } }, @@ -282,7 +282,7 @@ "command": { "composer-bin-plugin": { "package": "rskuipers/php-assumptions", - "namespace": "php-assumptions", + "namespace": "tools", "links": {"%target-dir%/phpa": "phpa"} } },