Inventing The Container or: WTH Is A Container And Why Should I Care?

Note: this is an archived site. The current site can be found at http://drupalcampla.com.
Day: 
Saturday
Time: 
2:30p
Room: 
Moss Cove A

Seeker: What does the Container contain?

Guru: Dependencies.

Seeker: Dependencies of what?

Guru: Everything that's dependency-injected.

Seeker: 'Dependency-injected' by what?

Guru: The Container.

(Repeat.)

This talk will untangle the seeming tautology of dependency injection and service containers into terms that hopefully don't seem so confusing or strange.

Using very simple code examples, we'll seek to understand dependency injection.

Then we'll begin to design a container to manage our dependencies.

And then we'll see that some frameworks can already do this for us, so we should use them. Specifically, Pimple.

So we'll re-design our code to use Pimple.

Time allowing, we'll also touch on the service container for Symfony and Drupal 8. And they'll make sense because you understand the concepts.

Category: 
PHP
Skill: 
Intermediate
Duration: 
One hour
Session Tags: