1
0
Fork 0

Avoid overwriting notification-url

pull/1903/merge
Jordi Boggiano 2013-05-14 15:24:18 +02:00
parent 7073d3876e
commit 3f2b9b4d4b
1 changed files with 3 additions and 1 deletions

View File

@ -518,7 +518,9 @@ class ComposerRepository extends ArrayRepository implements StreamableRepository
protected function createPackage(array $data, $class) protected function createPackage(array $data, $class)
{ {
try { try {
if (!isset($data['notification-url'])) {
$data['notification-url'] = $this->notifyUrl; $data['notification-url'] = $this->notifyUrl;
}
return $this->loader->load($data, 'Composer\Package\CompletePackage'); return $this->loader->load($data, 'Composer\Package\CompletePackage');
} catch (\Exception $e) { } catch (\Exception $e) {