Exemple #1
0
 /** @Given /^the list of the existing photos:$/ */
 public function listWithTheExistingPhotos(TableNode $existing_photos)
 {
     foreach ($existing_photos as $existing_photo) {
         BooothyContext::$app['container']->get('photo.domain.repository.saver')->__invoke(new Photo(new Id($existing_photo['id']), new Quote($existing_photo['quote']), Upload::atBooothy($existing_photo['upload_filename'], $existing_photo['upload_mime_type']), new ImageDetails($existing_photo['image_hex_color'], $existing_photo['image_width'], $existing_photo['image_height']), new DateTimeImmutable($existing_photo['creation_date']), new Email($existing_photo['user_id'])));
     }
 }
Exemple #2
0
 public function isStoredIn($storage_provider)
 {
     $this->upload = Upload::atBooothy($this->upload()->filename(), $this->upload()->mimeType());
 }