mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 08:56:36 +08:00
2463a8d568
Previously we were preventing circular dependencies by looking up the service before adding it as an injection for future-initialized services. This works, but it means that the order of service injection is important, and we cannot have two services auto-injected into each other. This commit takes a different approach. It removes the `lookup`, and instead adds a dummy injection which prevents the service being injected into itself during initialization. This allows us to have circular auto-imports, without breaking the injection resolver by injecting a service into itself. |
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |