Remove repository field from getProviders result

main
Jordi Boggiano 4 years ago
parent 8072ec9b7c
commit 1c73f078f7
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -221,7 +221,6 @@ class ArrayRepository implements RepositoryInterface
'name' => $candidate->getName(),
'description' => $candidate->getDescription(),
'type' => $candidate->getType(),
'repository' => $candidate->getSourceUrl() ?: '',
);
continue 2;
}

@ -444,7 +444,6 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
'name' => $candidate['name'],
'description' => isset($candidate['description']) ? $candidate['description'] : '',
'type' => isset($candidate['type']) ? $candidate['type'] : '',
'repository' => '',
);
}
}

@ -91,7 +91,7 @@ interface RepositoryInterface extends \Countable
*
* @param string $packageName package name which must be provided
*
* @return array[] an array with the provider name as key and value of array('name' => '...', 'description' => '...', 'type' => '...', 'repository' => '...url to source repo if available...')
* @return array[] an array with the provider name as key and value of array('name' => '...', 'description' => '...', 'type' => '...')
*/
public function getProviders($packageName);

Loading…
Cancel
Save