Files
fusionpbx/app/event_guard/resources/service/event_guard.php
markjcrane 2c448c7bfb Update Event Guard version 2.0
- Use the service class
- Use object interfaces
- Add support for nftables
2026-01-29 05:31:02 -07:00

18 lines
418 B
PHP

<?php
require_once dirname(__DIR__, 4) . '/resources/require.php';
try {
// Create the service
$service = event_guard_service::create();
// Exit using the status run method returns
exit($service->run());
} catch (Throwable $ex) {
// Show the details of the error
echo "Error occurred in " . $ex->getFile() . ' (' . $ex->getLine() . '):' . $ex->getMessage();
// Exit with error code
exit($ex->getCode());
}