Matt Stauffer 9/30/2014

Laravel 5.0 - Method Injection

Read Original

This article details the new method injection feature in Laravel 5.0, which allows the framework's IoC Container to resolve dependencies injected directly into methods, not just constructors. It contrasts this with constructor injection, explains the benefits for reducing constructor clutter, and provides code examples, with a focus on its common use in controllers.

Laravel 5.0 - Method Injection

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet