Skip to content

Commit

Permalink
Fix bug queue name not configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
dvlpp committed Oct 30, 2015
1 parent d3b42cc commit c543656
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private function moveUploadedFile()
$srcFileDisk,
$storageDisk,
!$duplication)
)->onQueue("sharp-files")
)->onQueue($this->getFileQueueName())
);

return [
Expand Down Expand Up @@ -212,4 +212,15 @@ private function generateThumbnail($tmpFilePath, $thumbConfig, $relativeThumbFol
sharp_thumbnail($tmpFilePath, $w, $h, [], $relativeThumbFolder, true);
}

private function getFileQueueName()
{
$queueName = config("sharp.file_queue_name");

if(!$queueName) {
$queueName = config("sharp.name") . "_sharp-files";
}

return $queueName;
}

}

0 comments on commit c543656

Please sign in to comment.