Remove repository field from getProviders result
parent
8072ec9b7c
commit
1c73f078f7
|
@ -221,7 +221,6 @@ class ArrayRepository implements RepositoryInterface
|
||||||
'name' => $candidate->getName(),
|
'name' => $candidate->getName(),
|
||||||
'description' => $candidate->getDescription(),
|
'description' => $candidate->getDescription(),
|
||||||
'type' => $candidate->getType(),
|
'type' => $candidate->getType(),
|
||||||
'repository' => $candidate->getSourceUrl() ?: '',
|
|
||||||
);
|
);
|
||||||
continue 2;
|
continue 2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -444,7 +444,6 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
|
||||||
'name' => $candidate['name'],
|
'name' => $candidate['name'],
|
||||||
'description' => isset($candidate['description']) ? $candidate['description'] : '',
|
'description' => isset($candidate['description']) ? $candidate['description'] : '',
|
||||||
'type' => isset($candidate['type']) ? $candidate['type'] : '',
|
'type' => isset($candidate['type']) ? $candidate['type'] : '',
|
||||||
'repository' => '',
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ interface RepositoryInterface extends \Countable
|
||||||
*
|
*
|
||||||
* @param string $packageName package name which must be provided
|
* @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);
|
public function getProviders($packageName);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue