From 5e02ec0a0b09b1f5191bebb8e0e631c847e65300 Mon Sep 17 00:00:00 2001 From: Invis1ble Date: Mon, 3 Jun 2024 04:00:57 +0300 Subject: [PATCH 1/2] Fix usage example. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dd860e2..4b01d16 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,9 @@ Symfony Serializer Extension [![Packagist](https://img.shields.io/packagist/v/Invis1ble/symfony-serializer-extension.svg)](https://packagist.org/packages/Invis1ble/symfony-serializer-extension) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE) -A useful set of additional (de)normalizers for [symfony/serializer](https://github.com/symfony/serializer) +A useful set of additional (de)normalizers for [symfony/serializer](https://github.com/symfony/serializer): + +- `UriNormalizer` for normalizing objects implementing `Psr\Http\Message\UriInterface` Installation ------------ @@ -51,7 +53,7 @@ use Symfony\Component\Serializer\Encoder\XmlEncoder; use Symfony\Component\Serializer\Serializer; $encoders = [new XmlEncoder(), new JsonEncoder()]; -$normalizers = [new UriNormalizer()]; +$normalizers = [new UriNormalizer($uriFactory)]; $serializer = new Serializer($normalizers, $encoders); ``` From fa3473de872e7cfccf320be27fb1097542c4a61b Mon Sep 17 00:00:00 2001 From: Invis1ble Date: Mon, 3 Jun 2024 04:01:31 +0300 Subject: [PATCH 2/2] Bump package version. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a0a5323..7bfbdca 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "1.0.1", "name": "invis1ble/symfony-serializer-extension", "type": "library", "description": "Additional useful (de)normalizers for symfony/serializer .",