/**
  * Handle the command
  *
  * @param $command
  * @return mixed
  */
 public function handle($command)
 {
     $client = S3Client::factory(array('key' => $this->config->get('services.s3.key'), 'secret' => $this->config->get('services.s3.secret')));
     /*
      * Upload image to S3
      */
     $filesystem = new Flysystem(new Adapter($client, $this->config->get('sightseeing.s3-bucket')));
     $extension = $this->filesystem->extension($command->image->getClientOriginalName());
     $filename = sha1(time() . time()) . ".{$extension}";
     $filesystem->write($filename, file_get_contents($command->image), ['visibility' => 'public']);
     /*
      * Create record on the database
      */
     $this->sightRepository->addImageById($command->id, $filename);
 }