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

[DCOM-93] Remove Reflection dependency from ClassMetadata #249

Merged
merged 8 commits into from
Jan 3, 2012
Merged

Conversation

beberlei
Copy link
Member

@beberlei beberlei commented Jan 2, 2012

The Reflection dependency leads to the annoying problem that we have the ClassMetadata deriving from ClassMetadataInfo. This is very bad OO code and has lead to problems on multiple occasions.

This PR removes the dependency by injecting a reflection service, which can be a Static Service not requiring the classes to exist.

* @param ReflectionSErvice $reflService
* @return void
*/
protected function initializeReflection(ClassMetadataInfo $class, ReflectionService $reflService)
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't you typehint the interface (as done in the phpdoc) ?

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.

4 participants