From 56f0d82207e5b9cba8fdb8aa0d43118e3fe1cfe4 Mon Sep 17 00:00:00 2001 From: Rob Bast Date: Mon, 20 Jul 2015 11:42:20 +0200 Subject: [PATCH] get resources dir from spdxlicenses --- src/Composer/Compiler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Composer/Compiler.php b/src/Composer/Compiler.php index 40e767873..b0448502c 100644 --- a/src/Composer/Compiler.php +++ b/src/Composer/Compiler.php @@ -13,6 +13,7 @@ namespace Composer; use Composer\Json\JsonFile; +use Composer\Spdx\SpdxLicenses; use Symfony\Component\Finder\Finder; use Symfony\Component\Process\Process; use Seld\PharUtils\Timestamps; @@ -96,7 +97,7 @@ class Compiler $finder->files() ->name('*.json') ->in(__DIR__.'/../../res') - ->in(__DIR__.'/../../vendor/composer/spdx-licenses/res/') + ->in(SpdxLicenses::getResourcesDir()) ->sort($finderSort) ;