SilverStripe\EnvironmentCheck\EnvironmentCheckSuite

Represents a suite of environment checks.

Specific checks can be registered against a named instance of EnvironmentCheckSuite.

Usage #1 - _config.php
EnvironmentCheckSuite::register('health', 'MyHealthCheck("my param")', 'Title of my health check');

Usage #2 - config.yml
EnvironmentCheckSuite:
registered_checks:
mycheck:
definition: 'MyHealthCheck("my param")'
title: 'Title of my health check'
registered_suites:
health:
- mycheck

$result = EnvironmentCheckSuite::inst('health')->run();