protected function getViewHandler()
    {
        if (!$this->viewhandler instanceof ViewHandlerInterface) {
            $this->viewhandler = $this->container->get('fos_rest.view_handler');
        }

        return $this->viewhandler;
    }
protected function getViewHandler()
    {
        if (!$this->viewhandler instanceof ViewHandlerInterface) {
            $this->viewhandler = $this->container->get('fos_rest.view_handler');
        }

        return $this->viewhandler;
    }
protected function getViewHandler ( ) { if ( ! $ this -> viewhandler instanceof ViewHandlerInterface ) { $ this -> viewhandler = $ this -> container -> get ( 'fos_rest.view_handler' ) ; } return $ this -> viewhandler ; }
Get the ViewHandler.

@return ViewHandlerInterface
Get the ViewHandler .