Source of file DevHealthController.php
Size: 0,744 Bytes - Last Modified: 2021-12-23T10:30:03+00:00
/var/www/docs.ssmods.com/process/src/src/Controllers/DevHealthController.php
1234567891011121314151617181920212223242526272829303132333435363738 | <?php namespace SilverStripe\EnvironmentCheck\Controllers; use SilverStripe\Control\Controller; use SilverStripe\Control\HTTPResponse_Exception; use SilverStripe\EnvironmentCheck\EnvironmentChecker; /** * Class DevHealthController * * @package environmentcheck */ class DevHealthController extends Controller { /** * @var array */ private static $allowed_actions = [ 'index' ]; /** * @return EnvironmentChecker * * @throws HTTPResponse_Exception */ public function index() { // health check does not require permission to run $checker = new EnvironmentChecker('health', 'Site health'); $checker->setErrorCode(500); return $checker; } } |