mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02:00
27 lines
487 B
PHP
27 lines
487 B
PHP
<?php
|
|
|
|
class DevHealthController extends Controller
|
|
{
|
|
/**
|
|
* @var array
|
|
*/
|
|
public static $allowed_actions = array(
|
|
'index'
|
|
);
|
|
|
|
/**
|
|
* @return EnvironmentChecker
|
|
*
|
|
* @throws SS_HTTPResponse_Exception
|
|
*/
|
|
public function index()
|
|
{
|
|
// health check does not require permission to run
|
|
|
|
$checker = new EnvironmentChecker('health', 'Site health');
|
|
$checker->setErrorCode(500);
|
|
|
|
return $checker;
|
|
}
|
|
}
|