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

Create an attribute driver decoupled from the annotations driver, deprecate the annotation based attribute reader #1469

Merged
merged 2 commits into from
Feb 3, 2023

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented Jan 29, 2023

Q A
Bug fix? no
New feature? yes
Doc updated yes/no
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets #1452
License MIT

As suggested with #1452 (comment) this makes a new base driver class for annotations and attributes, moves the loadMetadataForClass() method to that base class for reuse by child objects, and declares methods for child classes to handle loading whatever's needed. The current attribute reader (which implements the Annotations Reader interface) which is used as a decorator around an annotations reader for use inside the annotations driver is deprecated in favor of the new attributes driver.

(By design, the first commit here is a rename to try and retain the file history, otherwise doing it all in one go (rightfully) treats AnnotationOrAttributeDriver.php as a new file and the blame history gets really ugly; the commits individually show the moves right, even if GitHub's PR viewer doesn't)

…recate the annotation based attribute reader
@goetas
Copy link
Collaborator

goetas commented Jan 30, 2023

whoa, this is cool :)

@goetas goetas closed this Feb 3, 2023
@goetas goetas reopened this Feb 3, 2023
@goetas goetas merged commit 576d226 into schmittjoh:master Feb 3, 2023
@goetas
Copy link
Collaborator

goetas commented Feb 3, 2023

this is nice :)

thanks!

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