PsrResponseListener
in package
implements
EventSubscriberInterface
Converts PSR-7 Response to HttpFoundation Response using the bridge.
Tags
Interfaces, Classes, Traits and Enums
- EventSubscriberInterface
- An EventSubscriber knows itself what events it is interested in.
Table of Contents
- $httpFoundationFactory : HttpFoundationFactoryInterface
- __construct() : mixed
- getSubscribedEvents() : array<string, mixed>
- Returns an array of event names this subscriber wants to listen to.
- onKernelView() : mixed
- Do the conversion if applicable and update the response of the event.
Properties
$httpFoundationFactory
private
HttpFoundationFactoryInterface
$httpFoundationFactory
Methods
__construct()
public
__construct(HttpFoundationFactoryInterface $httpFoundationFactory) : mixed
Parameters
- $httpFoundationFactory : HttpFoundationFactoryInterface
Return values
mixed —getSubscribedEvents()
Returns an array of event names this subscriber wants to listen to.
public
static getSubscribedEvents() : array<string, mixed>
Return values
array<string, mixed> —The event names to listen to
onKernelView()
Do the conversion if applicable and update the response of the event.
public
onKernelView(KernelEvent $event) : mixed
Parameters
- $event : KernelEvent