-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(bundle): Merge bundle directly into automapper, will replace automapper-bundle #63
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c891fa7
to
2fc9d30
Compare
Korbeil
approved these changes
Mar 17, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR & nice additions to the docs ! 💪
Korbeil
added a commit
that referenced
this pull request
Mar 25, 2024
* feat(metadata): Refactor metadata (#56) * feat(metadata): Refactor metadata, split them depending on their roles, adapt transform interface with them * feat(transformer): remove callback transformer * feat(extractor): remove callback extractor * feat(transformer): remove deprecation trigger * chore(api): add internal everywhere it makes sense * chore(cs): fix wrong case for variable * feat(mapper): be nice with typing * feat(event): add event system, make serializer optional * feat(event): move map to context implementation to event listener * feat(bundle): Merge bundle directly into automapper, will replace automapper-bundle (#63) * feat(bundle): Merge bundle directly into automapper, will replace automapper-bundle * Migrate to bundle PHP config * chore(doc): update doc with new configuration / bundle namespace * feat(bundle): add all possible configuration to the bundle --------- Co-authored-by: Baptiste Leduc <baptiste.leduc@gmail.com> * chore(deps): allow to use sf 5.4 for most things, remove useless deps / suggests (#68) * feat(attribute): add map to attribute * feat(map-to): add transformer support * feat(map-to): throw exception if there is the same map to attribute for the same target * Fixes * feat(map-to): better callable support for transformer * chore(doc): add documentation about MapTo attribute * feat(attribute): add map-from attribute * feat(map-to): make it works with methods * chore(typo): fix variable name * fix(map-to): split map to / map from, fix from array * fix(event): use interface for class metadata factory * fix(groups): don't map property if groups specified and no groups attached * fix(normalize): don't map unexisting context, fix target to populate * fix(transformer): check class exists when checking reflection class in object transformer factory * feat(types): use a new interface to check types during runtime * feat(types): use a type matching class for types, allow to make better relationship between types * fix(ast): use correct php parser class * feat(types): add doc on check type interface, use named parameters for event * Update AutoMapper version for 9.0 branch * fix(types): try to get types from read accessor / write mutator first * feat(type): add new type extractor into bundle * feat(map-to): add listeners to bundle * feat(transformer): refactor the way to create custom transformer * feat(if): add if feature to map to / map from attributes * feat(if): allow to use a callable for if * fix(types): correctly handle prometed properties * fix(types): add documentation about why we need this extractor * feat(map-to): allow map to / from attribute in class when declaring a transformer and a name * Update CHANGELOG * feat(attribute): add groups to map to / from attributes * fix(map-from): correctly use method from target if asked * feat(transformer): allow expression language for transformer, add provider for custom functions * feat(transformer): add attribute to automatically bind service to expression language in bundle * feat(bundle): allow to use eval loader instead of file * fix(proxy): get real class name when a proxy is mapped in automapper * fix(normalizer): don't normalize iterable object (array) * fix(transformer): use current instead of dimension fetching, allow array not indexed by int * fix(transformer): fix incorrect date time transformer guess * fix: add tests for iterable normalizer, real class name and date time * feat(mapper): correctly map from an inherited class * feat(normalizer): add normalizer format in context * feat(groups): add a flags to completly skip group checking for a property * feat(normalizer): remove registry interface from normalizer as not needed * chore(test): allow to run symfony app in tests * chore(doc): reorganize documentation structure * chore(doc): rewrite getting started and bundle part of the documentation * Fix documentation build * Fix documentation build * chore(doc): add doc about mapping * fix(serializer): fix map to overriding ignore / groups attribute from serializer * chore(type): fix most phpstan issues * Update CHANGELOG.md * feat(normalizer): allow normalizer to only work with registered mapping * feat(migrate): fix doc with new config, add migrate doc, add tests * feat(mapper): add a way to instantiate object in mapper with providers * Update CHANGELOG.md * Small fixes --------- Co-authored-by: Joel Wurtz <jwurtz@jolicode.com> Co-authored-by: Joel Wurtz <joel.wurtz@gmail.com>
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.