haskel / map-serializer-bundle
This Bundle integrates library haskel/map-serializer into Symfony
Package info
github.com/haskel/map-serializer-bundle
Type:symfony-bundle
pkg:composer/haskel/map-serializer-bundle
v0.1
2020-10-17 10:23 UTC
Requires
Requires (Dev)
- symfony/dependency-injection: ~5.0
- symfony/http-kernel: ~5.0
This package is auto-updated.
Last update: 2026-03-17 22:11:18 UTC
README
Symfony Bundle for map-serialiser component
Installation
composer require haskel/map-serializer-bundle
Usage
Add bundle to config/bundles.php
Haskel\MapSerializerBundle\MapSerializerBundle::class => ['all' => true]
Add yaml schemas to config/map_serializer
Example config/map_serializer/User.yaml :
App\Entity\User: default: id: 'int' username: 'string' isActive: 'boolean' group: 'default' role: 'string' name: 'string' email: 'string' simple: id: 'int' name: 'string' public: username: 'string' email: 'string' name: 'string'
Well, your response will be processed by \Haskel\MapSerializerBundle\EventListener\ResponseListener