@@ 27-34 (lines=8) @@ | ||
24 | /** |
|
25 | * @return ViewHandlerInterface |
|
26 | */ |
|
27 | protected function getViewHandler() |
|
28 | { |
|
29 | if (!$this->viewhandler instanceof ViewHandlerInterface) { |
|
30 | $this->viewhandler = $this->container->get('fos_rest.view_handler'); |
|
31 | } |
|
32 | ||
33 | return $this->viewhandler; |
|
34 | } |
|
35 | ||
36 | /** |
|
37 | * {@inheritdoc} |
@@ 33-40 (lines=8) @@ | ||
30 | * |
|
31 | * @return ViewHandlerInterface |
|
32 | */ |
|
33 | protected function getViewHandler() |
|
34 | { |
|
35 | if (!$this->viewhandler instanceof ViewHandlerInterface) { |
|
36 | $this->viewhandler = $this->container->get('fos_rest.view_handler'); |
|
37 | } |
|
38 | ||
39 | return $this->viewhandler; |
|
40 | } |
|
41 | } |
|
42 |