public function putComposerJsonAction(Request $request)
    {
        $content = $request->getContent();
        try {
            $errors = $this->checkComposerJson($content);
        } catch (\Exception $e) {
            $errors = [
                'errors'   => [['line' => 0, 'msg' => 'Invalid payload']],
                'warnings' => [],
            ];
        }

        if (!empty($errors['errors'])) {
            $errors['status'] = 'ERROR';
        } else {
            $errors['status'] = 'OK';

            $file = $this->get('tenside.composer_json');
            $file->load($content);
            $file->save();
        }

        return new JsonResponse($errors);
    }