BringYourOwnIdeas\Maintenance\Util\ModuleHealthLoader
Handles fetching module health information from addons.silverstripe.org
Synopsis
class ModuleHealthLoader
extends ApiLoader
{
- // members
- protected array $moduleNames = ;
- // Inherited members from ApiLoader
- protected Client $guzzleClient;
- protected CacheInterface $cache;
- // methods
- public array getModuleHealthInfo()
- public array getModuleNames()
- public $this setModuleNames()
- protected void getCacheKey()
- // Inherited methods from ApiLoader
- protected abstract string getCacheKey()
- public array doRequest()
- public Client getGuzzleClient()
- public $this setGuzzleClient()
- public array getClientOptions()
- protected array|bool getFromCache()
- protected bool setToCache()
- protected void handleCacheFromResponse()
- public CacheInterface getCache()
- public $this setCache()
- protected Request createRequest()
- protected string|null resolveVersion()
Hierarchy
Members
protected
- $cache — Psr\SimpleCache\CacheInterface
- $guzzleClient — GuzzleHttp\Client
- $moduleNames — array
Methods
protected
public
- getModuleHealthInfo() — Return the list of supported addons as provided by addons.silverstripe.org
- getModuleNames()
- setModuleNames()
Inherited from BringYourOwnIdeas\Maintenance\Util\ApiLoader
protected
- createRequest() — Create a request with some standard headers
- getCacheKey() — Define a unique cache key for results to be saved for each request (subclass)
- getFromCache() — Attempts to load something from the cache and deserializes from JSON if successful
- handleCacheFromResponse() — Check the API response for cache control headers and respect them internally in the SilverStripe cache if found
- resolveVersion() — Resolve the framework version of SilverStripe.
- setToCache() — Given a value, set it to the cache with the given key after serializing the value as JSON
public
- doRequest() — Perform an HTTP request for module health information
- getCache()
- getClientOptions() — Get Guzzle client options
- getGuzzleClient()
- setCache()
- setGuzzleClient()