Tag Info

New answers tagged

2

I would change few things: remove singleton, make private static $container = [] anyway you're just using static methods to retrieve it. consider throwing special exception when getting not set service. re-consider automatic caching for services (it is possible you may not want it for every service) Considering pattern/anti pattern discussion I've found ...



Top 50 recent answers are included