deviantintegral/jms-serializer-uri-handler

A handler for serializing and deserializing PSR-7 URI objects

Installs: 12 826

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 2

pkg:composer/deviantintegral/jms-serializer-uri-handler

1.2.0 2022-08-10 11:50 UTC

README

CircleCI

This library supports serializing and deserializing URI instances, as defined by PSR-7.

Add this handler to your serializer with the following:

AnnotationRegistry::registerLoader('class_exists');
$this->serializer = SerializerBuilder::create()
  ->configureHandlers(
    function (HandlerRegistry $registry) {
        $registry->registerSubscribingHandler(new UriHandler());
    }
  )->build();