Browse Source

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 years ago
parent
commit
a7df302f01
1 changed files with 2 additions and 1 deletions
  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;
     }