PHP Класс Newscoop\GimmeBundle\Controller\ExceptionController

Наследование: extends FOS\RestBundle\Controller\ExceptionController
Показать файл Открыть проект

Открытые методы

Метод Описание
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