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