Browse Source

Package name list under packages/list.json should be a json array not object

Nils Adermann 12 năm trước cách đây
mục cha
commit
53bd62052b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Packagist/WebBundle/Controller/WebController.php

+ 1 - 1
src/Packagist/WebBundle/Controller/WebController.php

@@ -86,7 +86,7 @@ class WebController extends Controller
             ->getRepository('PackagistWebBundle:Package')
             ->getPackageNames();
 
-        return new Response(json_encode(array('packageNames' => $packageNames)), 200);
+        return new Response(json_encode(array('packageNames' => array_keys($packageNames))), 200);
     }
 
     /**