Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Newscoop
GimmeBundle
Controller
ExceptionController
getFormat
Newscoop\GimmeBundle\Controller\ExceptionController::getFormat PHP Method
ExceptionController Class Documentation
显示文件
Open project: sourcefabric/newscoop
getFormat()
protected
method
Determine the format to use for the response
protected
getFormat
(
Request
$request
,
string
$format
) :
string
$request
Symfony\Component\HttpFoundation\Request
Request instance
$format
string
The format to use for rendering (html, xml, ...)
return
string
Encoding format
protected function getFormat(Request $request, $format) { return 'json'; }
ExceptionController
createExceptionWrapper
getFormat
getParameters
showAction