headers->get('x-auth-token'); $security->isGranted('MAESTRO_PROJECT_PROJECTS_READ', $token); if (!$params->get('workflow_enabled')) { $body = [ 'type' => 'error', 'key' => 'workflow_enabled', 'method' => 'get', 'data' => '', ]; return $respond->statusUnauthorized()->createBody($body)->respond(); } $configuration = $configurationQuery->read($id); if (!$configuration) { $body = [ 'type' => 'error', 'key' => 'configuration', 'method' => 'get', 'data' => '', ]; $respond->statusNotFound(); } else { $body = [ 'type' => 'success', 'key' => 'configuration', 'method' => 'get', 'data' => $configuration, ]; $respond->statusOK(); } return $respond->createBody($body)->respond(); } }