-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Container::buildObject may result in infitite loop #4
Comments
Can you send me the code that causes this so I can better debug? |
buildObject now detects circular dependencies and throws an exception
The problem is not caused by the call to There's no way to get around this; however, |
The
buildObject
method usesset
method at the bottom.In specific case this may lead to infinite loop of
Joomla\DI\Container->buildObject()
andJoomla\DI\Container->getMethodArgs()
methods resulting inFatal error: Maximum function nesting level of '100' reached, aborting!
Because same key is being set in two places at a time:
I'm not sure if this is a bug (I'd say the
set
method shouldn't be part of thebuildObject
) or I misunderstood the functionality.The text was updated successfully, but these errors were encountered: