UserRouteAlterSubscriber
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.
static array
getSubscribedEvents()
{@inheritdoc}
onRoutingAlterAddFormats(RouteBuildEvent $event)
Adds supported formats to the user authentication HTTP routes.