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

Added factory interfaces, removed concrete type declaration, added ty… #5996

Open
wants to merge 3 commits into
base: 4.x
Choose a base branch
from

Conversation

bytes-commerce
Copy link
Contributor

…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.

{
private static array $doctrineTypeToFieldFqcn = [
private array $doctrineTypeToFieldFqcn = [
Copy link
Contributor Author

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.

Copy link
Contributor

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 = [
Copy link
Contributor Author

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 = [
Copy link
Contributor

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.

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