Welcome Guest, Not a member yet? Register   Sign In
Using Dependency Injection
#1

I want to use this thephpleague/container for my Dependecy Injection, any ideas how to implement it? Thank you and have a nice day!
Reply
#2

Hey, not sure if you ever got a working solution? I didn't find anything current so I'm playing with in now: https://github.com/tattersoftware/forum/...b12c26a8d0

That's making a fresh container but you could use the same steps to override the app and provide a third-party container. Hope it helps!
Reply
#3

I took a different route that I think is much simpler and better: using the container at the entry point (Routes) :https://github.com/tattersoftware/forum/compare/container2

The previous approach (handling it via an extended core app) is still here: https://github.com/tattersoftware/forum/.../container
Reply




Theme © iAndrew 2016 - Forum software by © MyBB