-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Added factory interfaces, removed concrete type declaration, added ty… #5996
base: 4.x
Are you sure you want to change the base?
Conversation
…pes to properties where missing.
…ke Interface replacement properly working.
{ | ||
private static array $doctrineTypeToFieldFqcn = [ | ||
private array $doctrineTypeToFieldFqcn = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, having this as private constant makes most sense; its not going to get modified anyway by the code and statics should be avoided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since it's used for guessing, I agree.
{ | ||
private AdminContextProvider $adminContextProvider; | ||
private iterable $filterConfigurators; | ||
private static array $doctrineTypeToFilterClass = [ | ||
private array $doctrineTypeToFilterClass = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, nothing writes to it, it should be a constant.
{ | ||
private static array $doctrineTypeToFieldFqcn = [ | ||
private array $doctrineTypeToFieldFqcn = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since it's used for guessing, I agree.
…pes to properties where missing.
This is the second PR to introduce more APIs to the repository for
final
classes. This time, it will introduce specific interfaces for Factories.