@@ -27,9 +27,9 @@ composer require patchlevel/hydrator
2727To use the hydrator you just have to create an instance of it.
2828
2929``` php
30- use Patchlevel\Hydrator\MetadataHydrator ;
30+ use Patchlevel\Hydrator\StackHydrator ;
3131
32- $hydrator = MetadataHydrator ::create();
32+ $hydrator = StackHydrator ::create();
3333```
3434
3535After that you can hydrate any classes or objects. Also ` final ` , ` readonly ` classes with ` property promotion ` .
@@ -483,9 +483,9 @@ class NameGuesser implements Guesser
483483To use this Guesser, you must specify it when creating the Hydrator:
484484
485485``` php
486- use Patchlevel\Hydrator\MetadataHydrator ;
486+ use Patchlevel\Hydrator\StackHydrator ;
487487
488- $hydrator = MetadataHydrator ::create([new NameGuesser()]);
488+ $hydrator = StackHydrator ::create([new NameGuesser()]);
489489```
490490
491491> [ !NOTE]
@@ -595,7 +595,7 @@ For this functionality we use the [symfony/event-dispatcher](https://symfony.com
595595use Patchlevel\Hydrator\Cryptography\SensitiveDataPayloadCryptographer;
596596use Patchlevel\Hydrator\Cryptography\Store\CipherKeyStore;
597597use Patchlevel\Hydrator\Metadata\Event\EventMetadataFactory;
598- use Patchlevel\Hydrator\MetadataHydrator ;
598+ use Patchlevel\Hydrator\StackHydrator ;
599599use Symfony\Component\EventDispatcher\EventDispatcher;
600600use Patchlevel\Hydrator\Event\PostExtract;
601601use Patchlevel\Hydrator\Event\PreHydrate;
@@ -616,7 +616,7 @@ $eventDispatcher->addListener(
616616 }
617617);
618618
619- $hydrator = new MetadataHydrator (eventDispatcher: $eventDispatcher);
619+ $hydrator = new StackHydrator (eventDispatcher: $eventDispatcher);
620620```
621621
622622### Cryptography
@@ -742,11 +742,11 @@ Here we show you how to configure the cryptography.
742742use Patchlevel\Hydrator\Cryptography\SensitiveDataPayloadCryptographer;
743743use Patchlevel\Hydrator\Cryptography\Store\CipherKeyStore;
744744use Patchlevel\Hydrator\Metadata\Event\EventMetadataFactory;
745- use Patchlevel\Hydrator\MetadataHydrator ;
745+ use Patchlevel\Hydrator\StackHydrator ;
746746
747747$cipherKeyStore = new InMemoryCipherKeyStore();
748748$cryptographer = SensitiveDataPayloadCryptographer::createWithDefaultSettings($cipherKeyStore);
749- $hydrator = new MetadataHydrator (cryptographer: $cryptographer);
749+ $hydrator = new StackHydrator (cryptographer: $cryptographer);
750750```
751751
752752> [ !WARNING]
0 commit comments