@@ -307,6 +307,9 @@ |
||
307 | 307 | return new SingleResourceResponse($form, new ResponseContext(400)); |
308 | 308 | } |
309 | 309 | |
310 | + /** |
|
311 | + * @param ContentListInterface $listId |
|
312 | + */ |
|
310 | 313 | private function findByContentOr404($listId, $contentId): ContentListItemInterface |
311 | 314 | { |
312 | 315 | /** @var ContentListItemInterface $listItem */ |
@@ -59,6 +59,10 @@ discard block |
||
59 | 59 | $manager->flush(); |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param string $env |
|
64 | + * @param ObjectManager $manager |
|
65 | + */ |
|
62 | 66 | public function loadRoutes($env, $manager): void |
63 | 67 | { |
64 | 68 | $routes = [ |
@@ -221,6 +225,9 @@ discard block |
||
221 | 225 | $manager->flush(); |
222 | 226 | } |
223 | 227 | |
228 | + /** |
|
229 | + * @param string $env |
|
230 | + */ |
|
224 | 231 | public function loadArticles($env, ObjectManager $manager): void |
225 | 232 | { |
226 | 233 | $articleDataProvider = $this->container->get(ArticleDataProvider::class); |
@@ -576,6 +583,10 @@ discard block |
||
576 | 583 | return $articleStatistics; |
577 | 584 | } |
578 | 585 | |
586 | + /** |
|
587 | + * @param string $fakeImage |
|
588 | + * @param string $targetFile |
|
589 | + */ |
|
579 | 590 | private function cropAndResizeImage($fakeImage, array $rendition, $targetFile): void |
580 | 591 | { |
581 | 592 | $image = imagecreatefromjpeg($fakeImage); |
@@ -38,6 +38,10 @@ |
||
38 | 38 | $manager->flush(); |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param string $env |
|
43 | + * @param ObjectManager $manager |
|
44 | + */ |
|
41 | 45 | public function loadArticles($env, $manager) |
42 | 46 | { |
43 | 47 | $articles = [ |
@@ -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; |
@@ -16,15 +16,7 @@ |
||
16 | 16 | |
17 | 17 | namespace SWP\Bundle\CoreBundle\MessageHandler; |
18 | 18 | |
19 | -use Doctrine\ORM\EntityManagerInterface; |
|
20 | -use Psr\Log\LoggerInterface; |
|
21 | -use Sentry\State\HubInterface; |
|
22 | -use SWP\Bundle\BridgeBundle\Doctrine\ORM\PackageRepository; |
|
23 | -use SWP\Bundle\CoreBundle\Hydrator\PackageHydratorInterface; |
|
24 | 19 | use SWP\Bundle\CoreBundle\MessageHandler\Message\ContentPushMessage; |
25 | -use SWP\Component\Bridge\Transformer\DataTransformerInterface; |
|
26 | -use SWP\Component\MultiTenancy\Context\TenantContextInterface; |
|
27 | -use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
|
28 | 20 | use Symfony\Component\Messenger\Handler\MessageHandlerInterface; |
29 | 21 | |
30 | 22 | class ContentPushHandler implements MessageHandlerInterface |