Example #1
0
 /**
  * Display the image
  *
  * @param ImageServiceInterface $imageService
  * @param $filename
  * @param $extension
  * @return mixed
  */
 public function show(ImageServiceInterface $imageService, $filename, $extension)
 {
     try {
         return $imageService->get($filename . '.' . $extension);
     } catch (ImageException $e) {
         throw new NotFoundHttpException();
     }
 }