mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-26 06:30:29 +01:00
13 lines
345 B
PHP
13 lines
345 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Xentral\Modules\Log\Service\DatabaseLogService;
|
|
|
|
/** @var ApplicationCore $app */
|
|
|
|
/** @var DatabaseLogService $logService */
|
|
$logService = $app->Container->get('DatabaseLogService');
|
|
$cleanupInterval = (int)$app->erp->Firmendaten('cleaner_logfile_tage');
|
|
$logService->removeLogsOlderThan($cleanupInterval);
|