Currently, serializer context is [quite simple by default](https://github.com/api-platform/core/blob/master/src/Serializer/ContextTrait.php#L31-L37) which prevents from doing certain things: 1. setting app-wide settings (for example, `allow_extra_attributes=false` as in #1217) 2. setting resource-wide settings 3. setting request-specific settings (for example, setting per-user / OAuth client `timezone` for DateTime (de)normalization) IMO it would make sense to provide a way to build a context, maybe with a new service tag? WDYT?
Currently, serializer context is quite simple by default which prevents from doing certain things:
allow_extra_attributes=falseas in disallow extra field when denormalization #1217)timezonefor DateTime (de)normalization)IMO it would make sense to provide a way to build a context, maybe with a new service tag? WDYT?