@@ -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; |
@@ -112,6 +112,9 @@ |
||
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | + /** |
|
| 116 | + * @param ImageInterface $image |
|
| 117 | + */ |
|
| 115 | 118 | private function markArticlesMediaAsUpdated($image) |
| 116 | 119 | { |
| 117 | 120 | /** @var ImageRenditionInterface[] $articleMedia */ |
@@ -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 |