handle(); return $this->jsonSuccess(['helps' => $helps]); } /** * @Get("/{id:[0-9]+}/info", name="api.help.info") */ public function infoAction($id) { $service = new HelpInfoService(); $help = $service->handle($id); if ($help['deleted'] == 1) { $this->notFound(); } if ($help['published'] == 0) { $this->notFound(); } return $this->jsonSuccess(['help' => $help]); } }