Welcome Guest, Not a member yet? Register   Sign In
Load Interface?
#6

[eluser]TaylorOtwell[/eluser]
I usually setup an auto-loader to handle interfaces.

However, I just recently finished a DI framework and IoC container for CI 2.0 that I'm planning to release soon. I just need to tidy up a few things. With it, you can bind interfaces to implementations and let the IoC container resolve your dependencies for you.

And, if you want, with two lines of code in the CodeIgniter.php core file you can even let it build your controllers for you, allowing constructor injection on your controllers.

If your interested in getting your hands on it early, just let me know.


Messages In This Thread
Load Interface? - by El Forum - 11-24-2010, 07:51 AM
Load Interface? - by El Forum - 11-24-2010, 08:22 AM
Load Interface? - by El Forum - 11-24-2010, 08:27 AM
Load Interface? - by El Forum - 11-24-2010, 10:52 AM
Load Interface? - by El Forum - 11-24-2010, 11:13 AM
Load Interface? - by El Forum - 11-24-2010, 12:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB