get resources dir from spdxlicenses
parent
ab08e4be62
commit
56f0d82207
|
@ -13,6 +13,7 @@
|
||||||
namespace Composer;
|
namespace Composer;
|
||||||
|
|
||||||
use Composer\Json\JsonFile;
|
use Composer\Json\JsonFile;
|
||||||
|
use Composer\Spdx\SpdxLicenses;
|
||||||
use Symfony\Component\Finder\Finder;
|
use Symfony\Component\Finder\Finder;
|
||||||
use Symfony\Component\Process\Process;
|
use Symfony\Component\Process\Process;
|
||||||
use Seld\PharUtils\Timestamps;
|
use Seld\PharUtils\Timestamps;
|
||||||
|
@ -96,7 +97,7 @@ class Compiler
|
||||||
$finder->files()
|
$finder->files()
|
||||||
->name('*.json')
|
->name('*.json')
|
||||||
->in(__DIR__.'/../../res')
|
->in(__DIR__.'/../../res')
|
||||||
->in(__DIR__.'/../../vendor/composer/spdx-licenses/res/')
|
->in(SpdxLicenses::getResourcesDir())
|
||||||
->sort($finderSort)
|
->sort($finderSort)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue