Преглед изворни кода

Remove repository field from getProviders result

Jordi Boggiano пре 5 година
родитељ
комит
1c73f078f7

+ 0 - 1
src/Composer/Repository/ArrayRepository.php

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

+ 0 - 1
src/Composer/Repository/ComposerRepository.php

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

+ 1 - 1
src/Composer/Repository/RepositoryInterface.php

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