/** * Gets the 'fos_rest.view_handler' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \FOS\RestBundle\View\ViewHandler A FOS\RestBundle\View\ViewHandler instance. */ protected function getFosRest_ViewHandlerService() { $this->services['fos_rest.view_handler'] = $instance = new \FOS\RestBundle\View\ViewHandler(array('json' => false, 'xml' => false, 'html' => true), 400, 204, false, array('html' => 302), 'twig'); $instance->setExclusionStrategyGroups(''); $instance->setExclusionStrategyVersion(''); $instance->setSerializeNullStrategy(false); $instance->setContainer($this); return $instance; }
/** * Gets the 'fos_rest.view_handler' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \FOS\RestBundle\View\ViewHandler A FOS\RestBundle\View\ViewHandler instance. */ protected function getFosRest_ViewHandlerService() { $this->services['fos_rest.view_handler'] = $instance = new \FOS\RestBundle\View\ViewHandler(array('json' => false, 'pdf' => false, 'html' => true), 400, 204, false, array('html' => 302), 'twig'); $instance->setContainer($this); return $instance; }