Browse Source

Added type parameter to search

Pierre du Plessis 8 years ago
parent
commit
90c02f78ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Packagist/WebBundle/Package/SymlinkDumper.php

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

@@ -291,7 +291,7 @@ class SymlinkDumper
             $this->rootFile['notify'] = str_replace('VND/PKG', '%package%', $url);
             $this->rootFile['notify-batch'] = $this->router->generate('track_download_batch');
             $this->rootFile['providers-url'] = $this->router->generate('home') . 'p/%package%$%hash%.json';
-            $this->rootFile['search'] = $this->router->generate('search', array('_format' => 'json')) . '?q=%query%';
+            $this->rootFile['search'] = $this->router->generate('search', array('_format' => 'json')) . '?q=%query%&type=%type%';
 
             if ($verbose) {
                 echo 'Dumping individual listings'.PHP_EOL;