9.0.0-beta.1
Pre-release
Pre-release
Added
- GH#61 Add event system during code generation, make serializer optional thanks to it
- GH#63 Merge bundle directly into automapper, will replace automapper-bundle
- GH#59 Add MapTo & MapFrom attributes
- GH#78 Add MapTo & MapFrom listeners to bundle
- GH#80 Add if feature to MapTo / MapFrom attributes
- GH#81 Allow MapTo / MapFrom attributes in class when declaring a transformer and a name
- GH#82 Add groups to MapTo / MapFrom attributes
- GH#84 Allow expression language for transformer and add provider for custom functions
- GH#86 Bundle: Allow to use eval loader instead of file
- GH#89 Add normalizer format in context, allow skipping group checking and remove registry interface from normalizer
- GH#96 Add a way to instantiate the target object from external service using provider
- GH#98 Allow normalizer to only work with registered mapping
Changed
- GH#56 Refactor metadata
- GH#68 Allow to use sf 5.4 for most things, remove useless deps / suggests
- GH#71 Use interface for class metadata factory
- GH#75 Types: better matching between types to better handle multiple types
- GH#79 Refactor the way to create custom transformer
- GH#90 Allow to run symfony app in tests
Fixed
- GH#70 Split map to / map from, fix from array
- GH#73 Don't map unexisting context, fix target to populate
- GH#72 Don't map property if groups specified and no groups attached
- GH#74 Check class exists when checking reflection class in object transformer factory
- GH#77 Try to get types from read accessor / write mutator first
- GH#83 Fix MapFrom: correctly use method from target if asked
- GH#85 Fix mapping with proxies
- GH#85 Fix \Traversable normalization
- GH#85 Fix array fetching on string indexed array
- GH#87 Correctly map from an inherited class
- GH#93 Fix map to overriding ignore / groups attribute from serializer
- GH#94 Fix most phpstan issues