/**
  * @param $idGallery
  * @param FileUpload[] $images
  */
 public function uploadImages($idGallery, $lang, array $images)
 {
     FileSystem::createDir(galleryPath . $idGallery . '_' . $lang);
     if (!empty($images)) {
         foreach ($images as $image) {
             $this->gallery->upload($idGallery, $lang, $image);
         }
     }
 }
예제 #2
0
 /**
  * @param string $idGallery
  * @param string $lang
  * @param FileUpload $image
  */
 public function uploadImage($idGallery, $lang, FileUpload $image)
 {
     $this->galleryRepository->upload($idGallery, $lang, $image);
 }