class URLCheck implements EnvironmentCheck (View source)

Check that a given URL is functioning, by default, the homepage.

Note that Director::test() will be used rather than a CURL check.

Properties

protected string $url
protected string $testString

Methods

public
__construct(string $url = '', string $testString = '')

No description

public
array
check()

No description

Details

__construct(string $url = '', string $testString = '')

No description

Parameters

string $url

The URL to check, relative to the site (homepage is '').

string $testString

An optional piece of text to search for on the homepage.

array check()

No description

Return Value

array

Result with 'status' and 'message' keys.

Status is EnvironmentCheck::ERROR, EnvironmentCheck::WARNING, or EnvironmentCheck::OK.