1
0
Fork 0

Remove repository field from getProviders result

pull/8740/head
Jordi Boggiano 2020-04-06 21:17:03 +02:00
parent 8072ec9b7c
commit 1c73f078f7
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
3 changed files with 1 additions and 3 deletions

View File

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

View File

@ -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' => '',
);
}
}

View File

@ -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);