/** * Gets the 'fos_rest.format_negotiator' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \FOS\RestBundle\Util\FormatNegotiator A FOS\RestBundle\Util\FormatNegotiator instance. */ protected function getFosRest_FormatNegotiatorService() { $this->services['fos_rest.format_negotiator'] = $instance = new \FOS\RestBundle\Util\FormatNegotiator(); $instance->add($this->get('fos_rest.request_matcher.50d7031fd332f324b33953b2158cded5b34cf57c3cd709fdaa24d6818252fd77ab4624ee'), array('methods' => NULL, 'priorities' => array(0 => 'html', 1 => 'json'), 'fallback_format' => 'html', 'prefer_extension' => '2.0')); $instance->add($this->get('fos_rest.request_matcher.0dfc4cce134bee15f08405cb5cea4845b13ff7d8c8f779004218432a2c552bd0cd9f9d27'), array('priorities' => array(0 => 'json', 1 => 'xml', 2 => 'html'), 'fallback_format' => NULL, 'prefer_extension' => '2.0', 'methods' => NULL, 'stop' => false)); return $instance; }
/** * Gets the 'fos_rest.format_negotiator' service. * * This service is shared. * This method always returns the same instance of the service. * * @return FOS\RestBundle\Util\FormatNegotiator A FOS\RestBundle\Util\FormatNegotiator instance. */ protected function getFosRest_FormatNegotiatorService() { $this->services['fos_rest.format_negotiator'] = $instance = new \FOS\RestBundle\Util\FormatNegotiator(); $instance->add($this->get('fos_rest.request_matcher.896f1de003619d822fdd731d5ca7e20e231d2df3fd3754e885a9d9568400a8c16fa461d5'), array('methods' => NULL, 'priorities' => array(0 => 'html', 1 => 'json'), 'fallback_format' => 'html', 'prefer_extension' => '2.0')); $instance->add($this->get('fos_rest.request_matcher.0dfc4cce134bee15f08405cb5cea4845b13ff7d8c8f779004218432a2c552bd0cd9f9d27'), array('prefer_extension' => false, 'fallback_format' => 'json', 'priorities' => array(0 => 'json'), 'methods' => NULL, 'stop' => false)); return $instance; }
/** * Gets the 'fos_rest.format_negotiator' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \FOS\RestBundle\Util\FormatNegotiator A FOS\RestBundle\Util\FormatNegotiator instance. */ protected function getFosRest_FormatNegotiatorService() { $this->services['fos_rest.format_negotiator'] = $instance = new \FOS\RestBundle\Util\FormatNegotiator(); $instance->add(new \Symfony\Component\HttpFoundation\RequestMatcher('^/api', NULL, NULL), array('priorities' => array(0 => 'json', 1 => '*/*'), 'fallback_format' => 'json', 'prefer_extension' => '2.0', 'methods' => NULL)); $instance->add(new \Symfony\Component\HttpFoundation\RequestMatcher('^/assets/css', NULL, NULL), array('priorities' => array(0 => 'css', 1 => '*/*'), 'fallback_format' => 'css', 'prefer_extension' => '2.0', 'methods' => NULL)); $instance->add(new \Symfony\Component\HttpFoundation\RequestMatcher('^/assets/js', NULL, NULL), array('priorities' => array(0 => 'js', 1 => '*/*'), 'fallback_format' => 'js', 'prefer_extension' => '2.0', 'methods' => NULL)); $instance->add(new \Symfony\Component\HttpFoundation\RequestMatcher('^/payment', NULL, NULL), array('priorities' => array(0 => '*/*'), 'fallback_format' => 'html', 'prefer_extension' => '2.0', 'methods' => NULL)); $instance->add(new \Symfony\Component\HttpFoundation\RequestMatcher('^/', NULL, NULL), array('priorities' => array(0 => 'html', 1 => 'json', 2 => '*/*'), 'fallback_format' => NULL, 'prefer_extension' => '2.0', 'methods' => NULL)); return $instance; }
protected function getFosRest_FormatNegotiatorService() { $this->services['fos_rest.format_negotiator'] = $instance = new \FOS\RestBundle\Util\FormatNegotiator(); $instance->add($this->get('fos_rest.request_matcher.aa0ef333d0f03745366f0552387560577f3d67f9710d460fce2205710b4d2990481c7ebe'), array('prefer_extension' => false, 'methods' => NULL, 'stop' => false, 'fallback_format' => 'html', 'priorities' => array())); return $instance; }