Преглед на файлове

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;
     }