소스 검색

Abandoned status metadata

Added the abandoned status to the `toArray` method of packages
so it is attached to the json data also.
Rafael Dohms 10 년 전
부모
커밋
a7df302f01
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/Packagist/WebBundle/Entity/Package.php

+ 2 - 1
src/Packagist/WebBundle/Entity/Package.php

@@ -168,7 +168,8 @@ class Package
             'maintainers' => $maintainers,
             'versions' => $versions,
             'type' => $this->getType(),
-            'repository' => $this->getRepository()
+            'repository' => $this->getRepository(),
+            'abandoned' => $this->isAbandoned()
         );
         return $data;
     }