/** * @Route("/stats/", name="status.index") */ public function index() : array { $stats = $this->stats->getAll(); try { $redisStats = $this->getRedis()->info(); } catch (PredisException $e) { $redisStats = []; } return ['jobs' => $this->messageQueue->getEventsByType(), 'stats' => $stats, 'redis' => $redisStats]; }