Valinor/tests
Romain Canon 69ad3f4777 feat: allow injecting a cache implementation that is used by the mapper
The cache implementation that was previously injected in the mapper
builder must now be manually injected. This gives better control on when
the cache should be enabled, especially depending on which environment
the application is running.

The library provides a cache implementation out of the box, which saves
cache entries into the file system.

It is also possible to use any PSR-16 compliant implementation, as long
as it is capable of caching the entries handled by the library.

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

(new \CuyZ\Valinor\MapperBuilder())
    ->withCache($cache)
    ->mapper()
    ->map(SomeClass::class, [/* … */]);
```
2022-05-23 20:28:02 +02:00
..
Fake feat!: improve message customization with formatters 2022-05-21 16:30:24 +02:00
Fixture misc: remove symfony/polyfill-php80 dependency 2022-04-09 17:44:32 +02:00
Functional feat: handle literal boolean true / false types 2022-05-09 21:14:46 +02:00
Integration feat: allow injecting a cache implementation that is used by the mapper 2022-05-23 20:28:02 +02:00
StaticAnalysis test: configure vimeo/psalm to verify type inference 2022-01-13 19:55:20 +01:00
Traits feat: initial release 2021-11-28 18:21:56 +01:00
Unit feat: allow injecting a cache implementation that is used by the mapper 2022-05-23 20:28:02 +02:00