| 1 | <?php |
||
| 11 | class MediaController extends Controller |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param Request $request |
||
| 15 | * @param int $id |
||
| 16 | * @param int $width |
||
| 17 | * @param int $height |
||
| 18 | * @return RedirectResponse |
||
| 19 | */ |
||
| 20 | public function imageRedirectAction(Request $request, $id, $width, $height) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param $id |
||
| 32 | * @return StreamedResponse |
||
| 33 | */ |
||
| 34 | public function downloadAction($id) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param $id |
||
| 41 | * @return MediaInterface |
||
| 42 | */ |
||
| 43 | protected function getMediaById($id) |
||
| 50 | } |
||
| 51 |