public function handle(SetDefaultImageForProductCommand $command)
 {
     $product = $this->productService->findOneById($command->getProductId());
     $image = $this->imageService->findOneById($command->getImageId());
     $product->setDefaultImage($image->getPath());
     $this->productService->update($product);
 }
 public function handle(CreateImageForTagCommand $command)
 {
     $this->imageService->createImageForTag($command->getUploadFileDTO(), $command->getTagId());
 }
 public function handle(CreateImageForProductCommand $command)
 {
     $this->imageService->createImageForProduct($command->getUploadFileDTO(), $command->getProductId());
 }