1 | <?php |
||
10 | class CRUDController extends BaseCRUDController |
||
11 | { |
||
12 | /** |
||
13 | * @return \Symfony\Component\HttpFoundation\Response |
||
14 | */ |
||
15 | 6 | public function createAction() |
|
31 | |||
32 | /** |
||
33 | * @param Request $request |
||
34 | * @param $id |
||
35 | * @return StreamedResponse |
||
36 | */ |
||
37 | 1 | public function downloadAction(Request $request, $id) |
|
|
|||
38 | { |
||
39 | 1 | $object = $this->admin->getObject($id); |
|
40 | |||
41 | 1 | $this->admin->checkAccess('show', $object); |
|
42 | |||
43 | 1 | return $this->get('mediamonks.sonata_media.utility.download')->getStreamedResponse($object); |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param Request $request |
||
48 | * @param int $id |
||
49 | * @return RedirectResponse |
||
50 | */ |
||
51 | 3 | public function imageAction(Request $request, $id, $width, $height) |
|
64 | } |
||
65 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.