Learn to Stop Wiring and Love Laravel's Container

Beau D. Simensen (21.Apr.2017 at 15:00, 50 min)
Talk at Lone Star PHP 2017 (English - US)

Rating: 5 of 5

You've heard about dependency injection and inversion of control. Everything seems easy at first and you've found a container or two to help make your life easier. Until it isn't anymore. Suddenly you've found yourself managing complicated YAML, XML, or PHP container configurations. Making any change to your classes dependencies seems like a chore and any time you add a new class to the system you dread the inevitable configuration container configuration wiring blues.

Life doesn't have to be this way! In fact, life isn't this way for anyone who uses an autowiring container like Laravel's. Far from the most publicly marketed component, Illuminate\Container handles a lot of the magic that makes Laravel so much fun to use. Find out how you can use Laravel's container in almost any project! See how autowiring can free your mind from having to manually configure ever little dependency. Learn how you, too, can learn to stop wiring your dependency injection container and love Laravel's container!

Who are you?

Claim talk

Talk claims have been moved to the new Joind.in site.

Please login to the new site to claim your talk

Comments closed.


Rating: 4 of 5

22.Apr.2017 at 09:02 by Wun Chiou (8 comments) via Web2 LIVE

Pretty good talk. I really liked seeing the code examples and comparison between different solutions.

Rating: 5 of 5

22.Apr.2017 at 09:55 by Jeremy Ward (86 comments) via Web2 LIVE

I thought Beau's presentation was very clear and easy-to-follow despite the fact that I haven't yet personally worked with containers in my career. He prefaced the discussion by clarifying some terminology (e.g., the differences between Dependency Inversion and Dependency Injection, Inversion of Control, Service Locator, and the very definition of Container itself), then walked through examples of the evolution of writing configuration files for PHP apps.

Through his examples, I learned that Laravel's container seems to be immensely easy to configure compare to other iterations, and that there are some open source packages out there that can assist developers with streamlining their own implementations if they're working with other frameworks such as Symfony.

Very nice, informative talk. Thank you for giving it!

© Joind.in 2018