Ed Zynda

Coder | Hacker | Superhero

What Is An IoC Container?

Posted on · Tagged in

If you’re discussing object oriented programming in PHP these days, it’s likely that you’ve at least heard about such topics as dependency injection or IoC containers. They’re both pretty useful tools for coding and testing your code. What exactly is an IoC container though? It sounds pretty complicated but it’s really not. If you read my earlier post on using repositories in Laravel you might have noticed that when using dependency injection in our __construct method, we didn’t have to actually instantiate our repository.…

Read more »
Subscribe to my newsletter and get a free copy of my book, Aspect Oriented Programming in PHP.