浏览代码

Merge pull request #692 from pierredup/type-search

Added type parameter to search
Jordi Boggiano 8 年之前
父节点
当前提交
d14f51d9b7
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;