Created
May 7, 2015 17:00
-
-
Save adelarcubs/7122bf0b9c005366de3a to your computer and use it in GitHub Desktop.
Exemplo de HealthCheck para apigility, usando um serviço de RPC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// namespace | |
use Zend\Mvc\Controller\AbstractActionController; | |
use ZF\ContentNegotiation\ViewModel; | |
class HealthCheckController extends AbstractActionController | |
{ | |
public function healthCheckAction() | |
{ | |
return new ViewModel(array( | |
'Status' => 'OK', | |
'HealthCheck' => time() | |
)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment