Open fd6130 opened 3 years ago
I found this https://github.com/mark-gerarts/automapper-plus#adding-context
The $context got the destination i need, but i saw this line in the doc
The context argument is an array that can contain any arbitrary value. Note that this argument isn't part of the AutoMapperInterface yet, since it would break backwards compatibility. It will be added in the next major release.
Is it usable in current version?
To encode a password in symfony, we have to use
UserPasswordEncoderInterface
to encode the password. It will need to pass the User entity as first parameter for the methodencodePassword()
.It will be cool if we could do something like