Skip to content

Commit

Permalink
Fix usage example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Invis1ble committed Jun 3, 2024
1 parent 00fd512 commit 5e02ec0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------
Expand Down Expand Up @@ -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);
```
Expand Down

0 comments on commit 5e02ec0

Please sign in to comment.