1 | <?php |
||
10 | class CRUDController extends BaseCRUDController |
||
11 | { |
||
12 | /** |
||
13 | * @return \Symfony\Component\HttpFoundation\Response |
||
14 | */ |
||
15 | 5 | public function createAction() |
|
16 | { |
||
17 | 5 | if (!$this->getRequest()->get('provider') && $this->getRequest()->isMethod('get')) { |
|
18 | return $this->render( |
||
19 | '@MediaMonksSonataMedia/CRUD/select_provider.html.twig', |
||
20 | [ |
||
21 | 'providers' => $this->get('mediamonks.sonata_media.provider.pool')->getProviders(), |
||
22 | 'base_template' => $this->getBaseTemplate(), |
||
23 | 'admin' => $this->admin, |
||
24 | 'action' => 'create', |
||
25 | ] |
||
26 | ); |
||
27 | } |
||
28 | |||
29 | 5 | return parent::createAction(); |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param Request $request |
||
34 | * @param $id |
||
35 | * @return StreamedResponse |
||
36 | */ |
||
37 | public function downloadAction(Request $request, $id) |
||
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.