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

feat: Optimize AnnotationToAttributeRector #296

Merged
merged 8 commits into from
Mar 9, 2024

Conversation

bbrala
Copy link
Collaborator

@bbrala bbrala commented Mar 9, 2024

Description

Add some better handling of types using Doctrine annotation service. Also add test for ContentEntityType and ConfigEntityType annotation. This seems like it will handle most things in core (with support for BC fixes for contrib).

Also added documentation for core plugin conversion so it can be started to be used.

Lets get this merged :)

To Test

  • Run tests
  • Try a plugin conversion? ; )

Drupal.org issue

https://www.drupal.org/project/rector/issues/3265946

@bbrala
Copy link
Collaborator Author

bbrala commented Mar 9, 2024

Also this was used here to generate a MR: https://www.drupal.org/project/drupal/issues/3396166

Comment on lines 28 to 33
$rectorConfig->autoloadPaths([
'./lib',
'./modules',
'./profiles',
'./themes'
]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

These settings and you're in core but the script execution looks like it's from the directory above

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You're right

@bbrala bbrala merged commit dc2e858 into main Mar 9, 2024
7 checks passed
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