AddRequestFormatsListener
AddRequestFormatsListener
class AddRequestFormatsListener implements EventSubscriberInterface
Adds configured formats to each request.
Methods
__construct(array $formats) | ||
onKernelRequest(GetResponseEvent $event) Adds request formats. | ||
static array | getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. |