Skip to content
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

Add GenericTargetFactory and related configuration #33

Merged
merged 7 commits into from
May 7, 2024

Conversation

jdreesen
Copy link
Member

Adds a GenericTargetFactory, which means you can skip writing your own TargetTypeFactory and just configure your target type if nothing more is needed than new MyTargetType().

@jdreesen jdreesen force-pushed the generic-target-factory branch 2 times, most recently from 9188ab4 to e8b937e Compare January 28, 2023 16:28
@jdreesen jdreesen marked this pull request as draft January 29, 2023 17:47
@jdreesen
Copy link
Member Author

Converted to draft until #37 is merged.

@jdreesen jdreesen force-pushed the generic-target-factory branch 2 times, most recently from 9d6d352 to c749382 Compare January 31, 2023 23:26
@mike4git
Copy link
Collaborator

mike4git commented Feb 4, 2023

I think my idea about "Single-level-of-abstraction" force to implement several private methods which would be readable and "documents" what would be done in each step:

$this->registerTargetFactory(...);
$this->registerConverter(...);
...

and of course there could be some more private "helper" methods which checks if a field is set and defined or do the registration.

@jdreesen
Copy link
Member Author

jdreesen commented Feb 6, 2023

This is currently on hold until #41 is done.

DerNoopPro pushed a commit that referenced this pull request Apr 18, 2024
@mike4git mike4git force-pushed the generic-target-factory branch from 4f54276 to 9ac6c99 Compare April 18, 2024 11:08
mike4git added a commit that referenced this pull request Apr 18, 2024
mike4git added a commit that referenced this pull request Apr 18, 2024
mike4git added a commit that referenced this pull request Apr 18, 2024
@mike4git mike4git marked this pull request as ready for review April 19, 2024 14:37
@jdreesen jdreesen force-pushed the generic-target-factory branch from 0a450a0 to f352d35 Compare May 7, 2024 13:23
Copy link
Collaborator

@mike4git mike4git left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx

@jdreesen jdreesen merged commit 1f4a656 into main May 7, 2024
5 checks passed
@jdreesen jdreesen deleted the generic-target-factory branch May 7, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants