Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DependencyInjection] Redis class to create connection not found since 6.3 #50622

Closed Answered by MatTheCat
lugosium asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the stack, but I see you edited your post to remove a repository’s configuration and it’s part of the problem, because you’re using the expression language. You’re rather supposed to extend ServiceEntityRepository, but let’s continue anyway.

lint:container will only run one compiler pass: the CheckTypeDeclarationPass, which must evaluate expressions to do its job. Because your expression calls EntityManagerInterface::getClassMetadata, the entity manager has to be instantiated as well as all its arguments, recursively (because it has to be fully functional to be used). Among these arguments is a Configuration which can store some cache implementations.

Now, from your post above …

Replies: 3 comments 13 replies

Comment options

You must be logged in to vote
5 replies
@lugosium
Comment options

@ghost
Comment options

@lugosium
Comment options

@ghost
Comment options

@lugosium
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@lugosium
Comment options

@lugosium
Comment options

@lugosium
Comment options

@MatTheCat
Comment options

Answer selected by lugosium
@lugosium
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants