composer update
This commit is contained in:
parent
a876b5cd8c
commit
9fb4b664fd
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user