composer update

This commit is contained in:
zyimm 2023-07-09 16:09:29 +08:00
parent a876b5cd8c
commit 9fb4b664fd

View File

@ -33,7 +33,7 @@ class Vendor extends LibraryInstaller
protected function config(PackageInterface $package): PackageInterface protected function config(PackageInterface $package): PackageInterface
{ {
var_dump($this->composer->getPackage()->getType(),$package->getExtra());exit; var_dump($this->composer->getPackage()->getType(),$package->getExtra());
if ($this->composer->getPackage()->getType() == 'project') { if ($this->composer->getPackage()->getType() == 'project') {
$extra = $package->getExtra(); $extra = $package->getExtra();
if (!empty($extra['think-config'])) { if (!empty($extra['think-config'])) {
@ -78,4 +78,8 @@ class Vendor extends LibraryInstaller
} }
copy($source, $target); copy($source, $target);
} }
public function supports($packageType): bool
{
return 'think-extend' === $packageType;
}
} }