-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
"ERROR: Circular reference detected for:" instead of creating Service with array of strings as parameters #299
Comments
If it's supposed to generate this code: return new Some\Events\LazyEventManager(['Plugins\Cms\Models\Admin\UserManager::onCheck' => ['some.event.subscriber.x']]); then you're missing parentheses in the definition and it should be there: $manager->setFactory(LazyEventManager::class, [['Plugins\Cms\Models\Admin\UserManager::onCheck' => ['some.event.subscriber.x']]]); If the bug is something else, try creating a repository with a minimal example demonstrating the bug. Because I am not able to replicate it from the given example. |
Thank you for reply. I found the problem was elsewhere: v 3.1.7 return value was string: v 3.81.8 return value is array:
I didn't find it here: https://github.com/nette/di/releases/tag/v3.1.8. So this Issue may be closed I guess, i fixed it in our DiExtension. |
Yeah, right. That was a fix again for a different problem, but it's a fact that can cause incompatibility, sorry. |
Thank you |
Version: 3.1.8 (only)
Bug Description
Can not build Container, attempt to build it ends in:
ERROR: Circular reference detected for: ....
Steps To Reproduce
Expected Behavior
Container generated with code:
Possible Solution
Version: 3.1.7 didn't have this problem of Circular Reference created by trying to convert string to Live service.
The text was updated successfully, but these errors were encountered: