Once https://github.com/Seldaek/monolog/issues/540 is fixed, it'd be nice to allow processor objects to be passed in the configuration. This would allow a given processor to be configured.
In this case I'm thinking it'd be good to allow configuration of the UserDataProcessor, for example to only allow through specific fields, or to block specific fields.
(The user can already do this by overriding toArray in their User object to return only particular fields, or by adding them to the $hidden attribute of the model, but this is still a desirable feature.)
Once https://github.com/Seldaek/monolog/issues/540 is fixed, it'd be nice to allow processor objects to be passed in the configuration. This would allow a given processor to be configured.
In this case I'm thinking it'd be good to allow configuration of the
UserDataProcessor
, for example to only allow through specific fields, or to block specific fields.(The user can already do this by overriding
toArray
in theirUser
object to return only particular fields, or by adding them to the$hidden
attribute of the model, but this is still a desirable feature.)