public function listAction()
    {
        $problemFetcher = $this->get('phlexible_problem.problem_fetcher');

        $data = [];
        foreach ($problemFetcher->fetch() as $problem) {
            $data[] = [
                'id' => strlen($problem->getId()) ? $problem->getId() : md5(serialize($problem)),
                'iconCls' => $problem->getIconClass(),
                'severity' => $problem->getSeverity(),
                'msg' => $problem->getMessage(),
                'hint' => $problem->getHint(),
                'link' => $problem->getLink(),
                'createdAt' => $problem->getCreatedAt()->format('Y-m-d H:i:s'),
                'lastCheckedAt' => $problem->getLastCheckedAt()->format('Y-m-d H:i:s'),
                'source' => $problem->isLive() ? 'live' : 'cached',
            ];
        }

        return new JsonResponse($data);
    }