Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Laravel's Dependency Injection

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Laravel's Dependency Injection

A small lightning talk for non-laravel users on why I like the dependency injection options that Laravel gives you.

Avatar for Hannes Van De Vreken

Hannes Van De Vreken

July 30, 2014

More Decks by Hannes Van De Vreken

Other Decks in Programming

Transcript

  1. SERVICE PROVIDER - REGISTER • Bind closures • Define Interface

    aliases • Don’t use other stuff outside closures
  2. • https:/ /github.com/laravel/laravel • http:/ /laravel.com/docs/ioc • https:/ /github.com/illuminate/container •

    http:/ /wikipedia.org/wiki/Dependency_injection • http:/ /laravel.com/docs/ioc#service-providers • http:/ /laravel.com/docs/packages#service-providers • http:/ /laravel.com/docs/facades • http:/ /laravel.com/docs/facades#mocking-facades REFERENCES