Advertisement
Guest User

Untitled

a guest
Jan 27th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1.                             $this->promises[$promiseNum] = $S3->uploadAsync('tantor-books', $file->getS3Key(), fopen($file->file->getPathname(), 'r'));
  2.                             $this->promises[$promiseNum]->then(function($value) use ($file) {
  3.                                 $this->log('uploaded');
  4.                                 $this->updateFile($file);
  5.                             }, function($value) {
  6.                                 $this->log('CANCELED');
  7.                             });
  8.                             $this->promises[$promiseNum]->wait();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement