PHP 클래스 Newscoop\GimmeBundle\Controller\ExceptionController

상속: extends FOS\RestBundle\Controller\ExceptionController
파일 보기 프로젝트 열기: sourcefabric/newscoop

공개 메소드들

메소드 설명
showAction ( Request $request, FlattenException $exception, Symfony\Component\HttpKernel\Log\DebugLoggerInterface $logger = null, string $format = 'html' ) : Response Newscoop REST API exceptions Controller.

보호된 메소드들

메소드 설명
createExceptionWrapper ( array $parameters )
getFormat ( Request $request, string $format ) : string Determine the format to use for the response
getParameters ( FOS\RestBundle\View\ViewHandler $viewHandler, $currentContent, $code, FlattenException $exception, Symfony\Component\HttpKernel\Log\DebugLoggerInterface $logger = null, $format = 'html' )

메소드 상세

createExceptionWrapper() 보호된 메소드

protected createExceptionWrapper ( array $parameters )
$parameters array

getFormat() 보호된 메소드

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, ...)
리턴 string Encoding format

getParameters() 보호된 메소드

protected getParameters ( FOS\RestBundle\View\ViewHandler $viewHandler, $currentContent, $code, FlattenException $exception, Symfony\Component\HttpKernel\Log\DebugLoggerInterface $logger = null, $format = 'html' )
$viewHandler FOS\RestBundle\View\ViewHandler
$exception Symfony\Component\HttpKernel\Exception\FlattenException
$logger Symfony\Component\HttpKernel\Log\DebugLoggerInterface

showAction() 공개 메소드

Converts an Exception to a Response. TODO: change exceptions handling in listener - this controller should deal only with REST API exceptions.
public showAction ( Request $request, FlattenException $exception, Symfony\Component\HttpKernel\Log\DebugLoggerInterface $logger = null, string $format = 'html' ) : Response
$request Symfony\Component\HttpFoundation\Request Request
$exception Symfony\Component\HttpKernel\Exception\FlattenException A FlattenException instance
$logger Symfony\Component\HttpKernel\Log\DebugLoggerInterface A DebugLoggerInterface instance
$format string The format to use for rendering (html, xml, ...)
리턴 Response Response instance