Replace calls to mediavorus to getMediaFromUri

This commit is contained in:
Benoît Burnichon
2015-05-12 18:12:02 +02:00
parent 81e8fcb606
commit 61206fd517
15 changed files with 40 additions and 41 deletions

View File

@@ -152,9 +152,7 @@ class FeedController extends Controller
throw new BadRequestHttpException('Uploaded file is invalid');
}
/** @var MediaVorus $mediavorus */
$mediavorus = $this->app['mediavorus'];
$media = $mediavorus->guess($file->getPathname());
$media = $this->app->getMediaFromUri($file->getPathname());
if ($media->getType() !== MediaInterface::TYPE_IMAGE) {
throw new BadRequestHttpException('Bad filetype');