mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 01:25:00 +00:00
Run symfonysetlist symfony_62
This commit is contained in:
@@ -30,12 +30,11 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
/**
|
||||
* Handle the request of document generation.
|
||||
*/
|
||||
class RequestGenerationHandler implements MessageHandlerInterface
|
||||
#[\Symfony\Component\Messenger\Attribute\AsMessageHandler]
|
||||
class RequestGenerationHandler
|
||||
{
|
||||
final public const AUTHORIZED_TRIALS = 5;
|
||||
|
||||
private const LOG_PREFIX = '[docgen message handler] ';
|
||||
|
||||
public function __construct(
|
||||
private readonly DocGeneratorTemplateRepository $docGeneratorTemplateRepository,
|
||||
private readonly EntityManagerInterface $entityManager,
|
||||
@@ -47,7 +46,6 @@ class RequestGenerationHandler implements MessageHandlerInterface
|
||||
private readonly TempUrlGeneratorInterface $tempUrlGenerator,
|
||||
private readonly TranslatorInterface $translator,
|
||||
) {}
|
||||
|
||||
public function __invoke(RequestGenerationMessage $message): void
|
||||
{
|
||||
if (null === $template = $this->docGeneratorTemplateRepository->find($message->getTemplateId())) {
|
||||
@@ -119,7 +117,6 @@ class RequestGenerationHandler implements MessageHandlerInterface
|
||||
'duration_int' => (new \DateTimeImmutable('now'))->getTimestamp() - $message->getCreatedAt()->getTimestamp(),
|
||||
]);
|
||||
}
|
||||
|
||||
private function sendDataDump(StoredObject $destinationStoredObject, RequestGenerationMessage $message): void
|
||||
{
|
||||
$url = $this->tempUrlGenerator->generate('GET', $destinationStoredObject->getFilename(), 3600);
|
||||
|
Reference in New Issue
Block a user