Commit 374799ec authored by Nicolas Widart's avatar Nicolas Widart

Typehinting the job queue variable

parent c6f8e51d
......@@ -2,6 +2,7 @@
use Illuminate\Contracts\Config\Repository;
use Illuminate\Contracts\Queue\Queue;
use Illuminate\Queue\Jobs\Job;
use Illuminate\Support\Facades\App;
use Modules\Media\Image\Imagy;
use Modules\Media\Repositories\FileRepository;
......@@ -61,7 +62,7 @@ class FileService
*/
private function createThumbnails($savedFile)
{
$this->queue->push(function($job) use ($savedFile)
$this->queue->push(function(Job $job) use ($savedFile)
{
App::make('imagy')->createAll($savedFile->path);
$job->delete();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment