class PsrResponseSubscriber implements EventSubscriberInterface (View source)

Response subscriber for handling PSR-7 responses.

Properties

protected HttpFoundationFactoryInterface $httpFoundationFactory

The httpFoundation factory.

Methods

__construct(HttpFoundationFactoryInterface $http_foundation_factory)

Constructs a new PathRootsSubscriber instance.

onKernelView(ViewEvent $event)

Converts a PSR-7 response to a Symfony response.

static 
getSubscribedEvents()

{@inheritdoc}

Details

__construct(HttpFoundationFactoryInterface $http_foundation_factory)

Constructs a new PathRootsSubscriber instance.

Parameters

HttpFoundationFactoryInterface $http_foundation_factory

The httpFoundation factory.

onKernelView(ViewEvent $event)

Converts a PSR-7 response to a Symfony response.

Parameters

ViewEvent $event

The Event to process.

static getSubscribedEvents()

{@inheritdoc}