src/PHPDish/Component/Media/Manager/FileUploader.php
public function upload(UploadedFile $uploadedFile)
    {
        $file = $this->fileFactory->createFileFromUploadedFile($uploadedFile);
        $this->fileManager->upload($file, true);

        return $file;
    }
public function upload(UploadedFile $uploadedFile)
    {
        $file = $this->fileFactory->createFileFromUploadedFile($uploadedFile);
        $this->fileManager->upload($file, true);

        return $file;
    }
{@inheritdoc}