first commit

This commit is contained in:
2025-08-02 16:30:27 +02:00
commit 23646bfcee
14851 changed files with 1750626 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
declare(strict_types=1);
namespace KupShop\SynchronizationBundle\Util;
use KupShop\KupShopBundle\Util\Logging\SentryLogger;
use KupShop\SynchronizationBundle\Logger\SynchronizationLogger;
use Psr\Log\LoggerInterface;
class SynchronizationLoggerFactory
{
public function __construct(
private readonly LoggerInterface $logger,
private readonly SentryLogger $sentryLogger,
) {
}
public function create(array $activityLogExceptions = [], ?string $logPrefix = null): SynchronizationLogger
{
$logger = new SynchronizationLogger(
$this->logger,
$this->sentryLogger
);
return $logger
->withLogPrefix($logPrefix)
->withActivityLogExceptions($activityLogExceptions);
}
}