Hacker News new | past | comments | ask | show | jobs | submit login
Using Lumen Without Facades (andyfleming.com)
1 point by andyfleming on July 16, 2015 | hide | past | favorite | 2 comments



Technically, this inverts the attempted DependencyInjection pattern and turns it into the ServiceLocator pattern. Still valid, but it couples your classes to the container itself. It's just as restrictive as a facade (also known as the Proxy pattern).


Fair enough. I actually, later, added a dependency injection example as well. It just requires some extra configuration.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: