getServiceLocator()->get(DiagnosticServiceInterface::SERVICE_ID); $config = $service->getDiagnosticJsConfig(); $supportListUrl = $config['diagnostic']['testers']['browser']['browserslistUrl']; if (!$supportListUrl) { throw new \common_exception_MissingParameter('The URL to the list of supported browser is not configured'); } $supportedListData = @file_get_contents($supportListUrl); if ($supportedListData === false) { $error = error_get_last(); throw new \common_exception_FileSystemError(sprintf( 'Unable to fetch the list of supported browsers due to error: %s', $error['message'] )); } return json_decode($supportedListData, true); } }