public function packageListAction(Request $request)
    {
        $composer  = $this->getComposer();
        $converter = new PackageConverter($composer->getPackage());
        $upgrades  = $this->getUpgradeRepository();
        $packages  = $converter->convertRepositoryToArray(
            $composer->getRepositoryManager()->getLocalRepository(),
            !$request->query->has('all'),
            $upgrades
        )->getData();
        ksort($packages);

        return new JsonResponse($packages, 200);
    }