auraphp / Aura.Di

Dependency Injection System
MIT License
349 stars 63 forks source link

Auto resolution or args based on namespace #47

Closed mbrevda closed 10 years ago

mbrevda commented 10 years ago

There seems to be a lot of boilerplate necessary to configure each class for Di. Perhaps the argument namespace can be examined and an object passed based on the namespace expected. While this would require some configuration on the Di side, it would greatly eliminate the amount of setup needed.

Relevant irc logs (19:27-19:34)

harikt commented 10 years ago

@mbrevda there is a sister project which uses Aura.Di by @koriym https://github.com/koriym/Ray.Di . It resolves auto resolution of stuffs if you need.

Thanks

pmjones commented 10 years ago

Oooo! Yeah that might be the right thing to do here. @koriym has done very good work in that regard. @mbrevda take a look at Ray.Di and tell me if it suits your needs.

koriym commented 10 years ago

Thanks @harikt @pmjones :)

harikt commented 10 years ago

/me bows . @koriym you are welcome dude.

pmjones commented 10 years ago

In light of of the existence of Ray.Di, I am not eager to set up auto-resolution in the core Aura.Di package. We can revisit this later if needed.