Skip to content

Releases: WonderNetwork/slim-kernel

v2.1.1

09 Dec 14:28
37eb136

Choose a tag to compare

Merge pull request #14 from WonderNetwork/feature/symfony-console-add…

v2.1.0

27 Nov 18:19
f45a35f

Choose a tag to compare

Automatically serialize response DTOs into JSON responses

2.0.4

30 Oct 08:10
6df04e0

Choose a tag to compare

Merge pull request #11 from WonderNetwork/feature/deserialize-enums

denormalize enums

2.0.3

20 Oct 09:56
3ba9475

Choose a tag to compare

v2.0.3

Merge pull request #10 from WonderNetwork/feature/deserialize-nested-…

2.0.2

04 Feb 20:37
8ca150a

Choose a tag to compare

Merge pull request #9 from WonderNetwork/feature/upgrade-deps

composer update

2.0.1

03 Feb 15:58
869966e

Choose a tag to compare

Merge pull request #8 from WonderNetwork/fix/closure-serialization

closures can’t reference self/$this in order for them to be serialized

2.0.0

28 Jan 19:17
90f1f44

Choose a tag to compare

Input parsing

In order to simplify input parsing, you can use the Symfony Serializer component to
automatically denormalize parsed request body or get params to a data transfer object
of your choice. In your controller, simply mark one of the parameters with #[Payload]
attribute and typehint it with your desired class:

public function __invoke(#[WonderNetwork\SlimKernel\Http\Serializer\Payload] MyDto $input) {}

If the serializer fails to denormalize the input, a HttpBadRequestException will be
thrown with a semi-helpful message attached. If you require custom serializer setup,
you can register your own instance using the following container key:

\WonderNetwork\SlimKernel\ServiceFactory\SlimServiceFactory::INPUT_DENORMALIZER

1.7.0

18 Dec 10:03
1b2aa46

Choose a tag to compare

Support glob patterns like **/*.php to match any directory depth

1.6.0

06 Dec 10:37
502fd07

Choose a tag to compare

add floats to array accessor

1.5.0

25 Nov 20:51
025a906

Choose a tag to compare

Allow configuring if symfony console application exits automatically by overriding the AutoExit::class service