headers->get('x-auth-token'); $security->isGranted('MAESTRO_PROJECT_PROJECTS_READ', $token); $display = $commandQuery->list(); if (is_array($display)) { $body = [ 'type' => 'success', 'key' => 'display', 'method' => 'get', 'data' => $display, ]; $respond->statusOK(); } else { $body = [ 'type' => 'error', 'key' => 'display', 'method' => 'get', 'data' => '', ]; $respond->statusUnprocessableEntity(); } return $respond->createBody($body)->respond(); } }