Commit 538347f1 authored by Nicolas Widart's avatar Nicolas Widart

Using the app facade

parent b2d04bde
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
use Illuminate\Contracts\Config\Repository; use Illuminate\Contracts\Config\Repository;
use Illuminate\Contracts\Queue\Queue; use Illuminate\Contracts\Queue\Queue;
use Modules\Media\Image\Facade\Imagy; use Illuminate\Support\Facades\App;
use Modules\Media\Repositories\FileRepository; use Modules\Media\Repositories\FileRepository;
use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\File\UploadedFile;
...@@ -53,7 +53,7 @@ class FileService ...@@ -53,7 +53,7 @@ class FileService
{ {
$this->queue->push(function($job) use ($savedFile) $this->queue->push(function($job) use ($savedFile)
{ {
Imagy::createAll($savedFile->path); App::make('imagy')->createAll($savedFile->path);
$job->delete(); $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