Skip to content

Commit

Permalink
forgotten var_dump
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Kabac committed Sep 14, 2020
1 parent d3c85fb commit b959397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/S3Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ public function getFile(string $key): array
$cache = $this->cache->getItem(MD5($key));

if (!($data = $cache->get())) {
$cache->set($this->getS3File($key));
$file = $this->getS3File($key);
$cache->set($file);
$this->cache->save($cache);
} else {
$cache->expiresAfter($this->cacheLifetime);
Expand Down Expand Up @@ -164,7 +165,6 @@ protected function getS3File(string $key): array
'body' => $object['Body']->getContents(),
];
} catch (S3Exception $e) {
var_dump($e->getAwsErrorCode());
switch ($e->getAwsErrorCode()) {
case 'NoSuchKey':
throw new FileNotExistsException("{$e->getAwsErrorMessage()} Key: {$key}", 404);
Expand Down

0 comments on commit b959397

Please sign in to comment.