cfw_curl_installed()
cfw_curl_installed() : bool
cfw_curl_shim() : \Drupal\drupflare\Shim\CurlShim|null
The one shim instance, resolved on FIRST USE rather than at declaration time.
This fragment runs from ensurePhp(), which is before Drupal's autoloader exists, so a class_exists() guard around the declarations would never pass and the functions would never be declared at all. Resolving here instead means the class is looked up when a caller actually makes a request, by which time the module is loaded.
NULL when the module is not loaded, which every caller below treats as a refusal.
cfw_curl_absent() : false
Declares the gap once, then answers the way curl answers a connection it cannot make.
Never silently absent. Without the module there is no queue to defer into, so the honest answer is the same FALSE a caller already handles -- but an operator gets a status-report row saying why instead of an unexplained failure.
curl_version() : array<string,mixed>
Reports a version the way ext-curl does, so a caller's feature test has something to read.
The version string names this shim rather than a curl release: a caller comparing against a real curl version must not conclude a feature is present because the number looked new enough.