Commit 9ad370e8 authored by Nicolas Widart's avatar Nicolas Widart

Typehinting the uploaded file

parent b263b7d9
<?php namespace Modules\Media\Services; <?php namespace Modules\Media\Services;
use Modules\Media\Repositories\FileRepository; use Modules\Media\Repositories\FileRepository;
use Symfony\Component\HttpFoundation\File\UploadedFile;
class FileService class FileService
{ {
...@@ -14,7 +15,7 @@ class FileService ...@@ -14,7 +15,7 @@ class FileService
$this->file = $file; $this->file = $file;
} }
public function store($file) public function store(UploadedFile $file)
{ {
// Save the file info to db // Save the file info to db
$savedFile = $this->file->createFromFile($file); $savedFile = $this->file->createFromFile($file);
......
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