mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
change preProcess from private to public
I need to override the preProcess method from a child class. The use case is related to package renaming in a private satis repository. I understand the implication for packagist (and other public repository) but keeping the root packageName cause problem when you need to rename a package. I will override override the name assignation with this ```PHP // use the main identifier if name is not present $data['name'] = !isset($data['name']) ? $this->packageName : $data['name']; ```
This commit is contained in:
parent
a309e1d89d
commit
2a4b125125
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ class VcsRepository extends ArrayRepository
|
|||
}
|
||||
}
|
||||
|
||||
private function preProcess(VcsDriverInterface $driver, array $data, $identifier)
|
||||
protected function preProcess(VcsDriverInterface $driver, array $data, $identifier)
|
||||
{
|
||||
// keep the name of the main identifier for all packages
|
||||
$data['name'] = $this->packageName ?: $data['name'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue