BringYourOwnIdeas\Maintenance\Util\ApiLoader::doRequest
Perform an HTTP request for module health information
Signature
public function doRequest(string
$endpoint,
callable
$callback )
Parameters
$endpoint
— string- API endpoint to check for results
$callback
— callable- Function to return the result of after loading the API data
Returns
- array
Errors/Exceptions
-
RuntimeException
- When the API responds with something that's not module health information