-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Getting exception #530
Comments
Hi, you have a circular dependency in your object graph. For example you want to inject the router in a service A and also inject service A in the router. That is often because of a root problem in the design of the classes. |
Would you please give a simple code example to reproduce this error? It helps me debugging. |
This problem comes from php-di/slim-bridge v1.0.3. There is a couple steps you need to run to solve it.
Finally, Build Something awesome. |
@richard4s suggesting to install an older version is not at all a good solution. If you have found a bug please open an ticket instead. |
Using an older version is not the best but when you're working on a project
with a deadline, you can't let a new version get in the way
…On Mar 4, 2018 9:07 AM, "Matthieu Napoli" ***@***.***> wrote:
@richard4s <https://github.com/richard4s> suggesting to install an older
version is not at all a good solution.
If you have found a bug please open an ticket instead.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#530 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AbVX18B779OdL7Dwn0HaWXnVz7qtjQFlks5ta6DTgaJpZM4QKcCz>
.
|
thank! fix error |
Thanks for the solution. |
Thanks! |
I am getting this error. Please advise what does it mean and how to fix it?
Fatal error: Uncaught DI\DependencyException: Circular dependency detected while trying to resolve entry 'router' in /vendor/php-di/php-di/src/DI/Container.php:281 Stack trace: #0 /vendor/php-di/php-di/src/DI/Container.php(124): DI\Container->resolveDefinition(Object(DI\Definition\AliasDefinition)) #1 /vendor/php-di/php-di/src/DI/Definition/AliasDefinition.php(63): DI\Container->get('router') #2 /vendor/php-di/php-di/src/DI/Definition/Resolver/SelfResolver.php(34): DI\Definition\AliasDefinition->resolve(Object(DI\Container)) #3 /vendor/php-di/php-di/src/DI/Definition/Resolver/ResolverDispatcher.php(58): DI\Definition\Resolver\SelfResolver->resolve(Object(DI\Definition\AliasDefinition), Array) #4 /vendor/php-di/php-di/src/DI/Container.php(287): DI\Definition\Resolver\ResolverDispatcher->resolve(Object(DI\ in /vendor/php-di/php-di/src/DI/Container.php on line 281
The text was updated successfully, but these errors were encountered: