Beispiel #1
0
 /**
  * @param ThumbFinderRequest $request
  * @return mixed
  */
 public function findPhotoCollectionWithItsThumbsOf(ThumbFinderRequest $request)
 {
     $photoCollection = $this->photoRepository->findCollectionBy($request->resourceId());
     $collectionOfThumbCollection = new CollectionOfThumbCollection();
     foreach ($photoCollection as $photo) {
         $collectionOfThumbCollection[] = $this->getThumbsCollectionOfPhoto($request->thumbRequestCollection(), $photo);
     }
     return $this->thumbPresenter->writeCollection($photoCollection, $collectionOfThumbCollection);
 }
Beispiel #2
0
 /**
  * @param ResourceId $resourceId
  * @return mixed
  */
 public function findPhotoCollectionOf(ResourceId $resourceId)
 {
     return $this->presenter->writeCollection($this->repository->findCollectionBy($resourceId));
 }