class UserRouteAlterSubscriber implements EventSubscriberInterface (View source)

Alters user authentication routes to support additional serialization formats.

Properties

protected array $serializerFormats

The available serialization formats.

Methods

__construct(array $serializer_formats)

UserRouteAlterSubscriber constructor.

static array
getSubscribedEvents()

{@inheritdoc}

onRoutingAlterAddFormats(RouteBuildEvent $event)

Adds supported formats to the user authentication HTTP routes.

Details

__construct(array $serializer_formats)

UserRouteAlterSubscriber constructor.

Parameters

array $serializer_formats

The available serializer formats.

static array getSubscribedEvents()

{@inheritdoc}

Return Value

array

onRoutingAlterAddFormats(RouteBuildEvent $event)

Adds supported formats to the user authentication HTTP routes.

Parameters

RouteBuildEvent $event

The event to process.