Skip to content

Source config as custom attribute - #23

Merged
jeppekroghitk merged 7 commits into
developfrom
feature/8191-source-config-as-custom-attribute
Sep 14, 2026
Merged

jeppekroghitk merged 7 commits into
developfrom
feature/8191-source-config-as-custom-attribute

Conversation

@jeppekroghitk

@jeppekroghitk jeppekroghitk commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Link to ticket

#8191

Description

  • Moved source metadata into an #[AsDataSource] attribute
  • Removed unused source manifest
  • Added revision note to ADR 007

Screenshot of the result

N/A

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

@jeppekroghitk
jeppekroghitk changed the base branch from main to develop September 14, 2026 10:33
Comment thread src/Source/AsDataSource.php Outdated
Comment on lines +10 to +11
#[\Attribute(\Attribute::TARGET_CLASS)]
final readonly class AsDataSource extends Definition

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any specific reasons for introducing the AsDataSource class? We can just use Definition as an attribute.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Just to adhere to Symfonys naming conventions. Nothing functional.

@jeppekroghitk
jeppekroghitk merged commit d475c61 into develop Sep 14, 2026
4 checks passed
@jeppekroghitk
jeppekroghitk deleted the feature/8191-source-config-as-custom-attribute branch September 14, 2026 11:56
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.

Look into defining data source configuration as custom attribute e.g. #[AsDataSource()]

2 participants