SilverStripe\ExternalLinks\Tasks\CurlLinkChecker
Check links using curl
Synopsis
class CurlLinkChecker
implements
LinkChecker
{
- // members
- private static boolean $follow_location = false;
- private static boolean $bypass_cache = false;
- private static array $headers = ;
Hierarchy
Members
private
- $bypass_cache
—
boolean
If we want to bypass the cache Set via YAML file - $follow_location
—
boolean
If we want to follow redirects a 301 http code for example Set via YAML file - $headers
—
array
Allow to pass custom header to be in CURL request
Methods
protected
- getCache() — Return cache
public
- checkLink() — Determine the http status code for a given link