#[Package('core')]
class WebhookCleanup{ /**
* @internal
*/
public function __construct( private readonly SystemConfigService
$systemConfigService,
private readonly Connection
$connection,
private readonly ClockInterface
$clock =
new NativeClock(),
) { } public function removeOldLogs(): void
{ $entryLifetimeSeconds =
$this->systemConfigService->
getInt('core.webhook.entryLifetimeSeconds'
);
if ($entryLifetimeSeconds === -1
) { return;
}