2012-01-10 07:28:04 +01:00
|
|
|
<?php
|
|
|
|
|
2015-11-21 07:18:35 +01:00
|
|
|
class DevHealthController extends Controller
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
public static $allowed_actions = array(
|
|
|
|
'index'
|
|
|
|
);
|
2013-06-21 05:36:45 +02:00
|
|
|
|
2015-11-21 07:18:35 +01:00
|
|
|
/**
|
|
|
|
* @return EnvironmentChecker
|
|
|
|
*
|
|
|
|
* @throws SS_HTTPResponse_Exception
|
|
|
|
*/
|
|
|
|
public function index()
|
|
|
|
{
|
|
|
|
// health check does not require permission to run
|
2015-09-10 23:13:48 +02:00
|
|
|
|
2015-11-21 07:18:35 +01:00
|
|
|
$checker = new EnvironmentChecker('health', 'Site health');
|
2016-06-17 03:43:39 +02:00
|
|
|
$checker->setErrorCode(500);
|
2015-09-10 23:13:48 +02:00
|
|
|
|
2015-11-21 07:18:35 +01:00
|
|
|
return $checker;
|
|
|
|
}
|
2015-04-08 07:25:02 +02:00
|
|
|
}
|