@@ -21,7 +21,6 @@ |
||
21 | 21 | use function explode; |
22 | 22 | use Knp\Component\Pager\Pagination\SlidingPagination; |
23 | 23 | use Knp\Component\Pager\PaginatorInterface; |
24 | -use OldSound\RabbitMqBundle\RabbitMq\ProducerInterface; |
|
25 | 24 | use SWP\Bundle\CoreBundle\Repository\PackageRepositoryInterface; |
26 | 25 | use SWP\Bundle\MultiTenancyBundle\MultiTenancyEvents; |
27 | 26 | use SWP\Component\Bridge\Model\PackageInterface; |
@@ -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 |