headers->get('x-auth-token'); $security->isGranted('MAESTRO_PROJECT_PROJECTS_READ', $token); $list = $projectQuery->getExportTypesArray($id); if (!is_array($list)) { $body = [ 'type' => 'error', 'key' => 'getPlace', 'method' => 'get', 'data' => '', ]; $respond->statusNotFound(); } else { $body = [ 'type' => 'success', 'key' => 'getPlace', 'method' => 'get', 'data' => $list, ]; $respond->statusOk(); } return $respond->createBody($body)->respond(); } }