| 1 | <?php |
||
| 20 | abstract class AbstractFOSRestController extends AbstractController |
||
| 21 | { |
||
| 22 | use ControllerTrait; |
||
| 23 | |||
| 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} |
||
| 38 | */ |
||
| 39 | 12 | public static function getSubscribedServices() |
|
| 46 | } |
||
| 47 |