27 lines
679 B
PHP
27 lines
679 B
PHP
<?php
|
|
|
|
use PrestaShop\Module\PsEventbus\Controller\AbstractApiController;
|
|
use PrestaShop\Module\PsEventbus\Repository\ServerInformationRepository;
|
|
|
|
class ps_EventbusApiHealthCheckModuleFrontController extends AbstractApiController
|
|
{
|
|
public $type = 'shops';
|
|
|
|
public function init()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function postProcess()
|
|
{
|
|
/** @var ServerInformationRepository $serverInformationRepository */
|
|
$serverInformationRepository = $this->module->getService(ServerInformationRepository::class);
|
|
|
|
$status = $serverInformationRepository->getHealthCheckData();
|
|
|
|
$this->exitWithResponse($status);
|
|
}
|
|
}
|