@@ -18,7 +18,6 @@ |
||
| 18 | 18 | |
| 19 | 19 | use Doctrine\DBAL\Exception\NotNullConstraintViolationException; |
| 20 | 20 | use Doctrine\ORM\EntityManagerInterface; |
| 21 | -use Doctrine\ORM\NonUniqueResultException; |
|
| 22 | 21 | use Psr\Log\LoggerInterface; |
| 23 | 22 | use Sentry\Breadcrumb; |
| 24 | 23 | use Sentry\State\HubInterface; |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | |
| 53 | 53 | $tenantId = $this->tenantContext->getTenant()->getId(); |
| 54 | 54 | |
| 55 | - $this->eventDispatcher->addListener(KernelEvents::TERMINATE, function (TerminateEvent $event) use ($rendition, $tenantId) { |
|
| 55 | + $this->eventDispatcher->addListener(KernelEvents::TERMINATE, function(TerminateEvent $event) use ($rendition, $tenantId) { |
|
| 56 | 56 | $this->messageBus->dispatch(new ConvertImageMessage( |
| 57 | 57 | (int) $rendition->getImage()->getId(), |
| 58 | 58 | (int) $tenantId |