Mparaiso / Pimple.js

Pimple is a Dependency Injection Container for javascript , compatible with all javascript enabled browsers.
26 stars 4 forks source link

Detect circular dependency #1

Closed oliverzy closed 10 years ago

oliverzy commented 10 years ago

Is there a way to detect circular dependency and report the corresponding error in Pimple.js? I think it's a useful feature.

Mparaiso commented 10 years ago

Not at the moment but if you must do something like this you'd want to inject something lazily (inside a getter for instance... ).