Browse Source

Indicate preliminary support for v2 metadata

Jordi Boggiano 6 years ago
parent
commit
96b70487a8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Packagist/WebBundle/Package/SymlinkDumper.php

+ 1 - 0
src/Packagist/WebBundle/Package/SymlinkDumper.php

@@ -304,6 +304,7 @@ class SymlinkDumper
             $this->rootFile['notify'] = str_replace('VND/PKG', '%package%', $url);
             $this->rootFile['notify-batch'] = $this->router->generate('track_download_batch', [], UrlGeneratorInterface::ABSOLUTE_URL);
             $this->rootFile['providers-url'] = $this->router->generate('home', []) . 'p/%package%$%hash%.json';
+            $this->rootFile['metadata-url'] = $this->router->generate('home', []) . 'p/%package%.json'; // TODO make this p2/ once we dump the new format there
             $this->rootFile['search'] = $this->router->generate('search', ['_format' => 'json'], UrlGeneratorInterface::ABSOLUTE_URL) . '?q=%query%&type=%type%';
 
             if ($verbose) {