Valinor/tests/Fake
Maximilian Bösing ccf09fd334
feat: introduce method to warm the cache up
This new method can be used for instance in a pipeline during the build
and deployment of the application.

The cache has to be registered first, otherwise the warmup will end up
being useless.

```php
$cache = new \CuyZ\Valinor\Cache\FileSystemCache('path/to/cache-dir');

$mapperBuilder = (new \CuyZ\Valinor\MapperBuilder())->withCache($cache);

// During the build:
$mapperBuilder->warmup(SomeClass::class, SomeOtherClass::class);

// In the application:
$mapper->mapper()->map(SomeClass::class, [/* … */]);
```

Co-authored-by: Romain Canon <romain.hydrocanon@gmail.com>
2022-05-23 22:01:40 +02:00
..
Cache feat: introduce method to warm the cache up 2022-05-23 22:01:40 +02:00
Definition fix: handle function definition cache invalidation when file is modified 2022-04-06 18:24:16 +02:00
Mapper feat!: improve message customization with formatters 2022-05-21 16:30:24 +02:00
Type refactor: improve FakeObjectType constructors 2022-05-21 16:30:24 +02:00
FakeReflector.php feat: initial release 2021-11-28 18:21:56 +01:00