From 159c7d78aba336c307fdae23df1e3213aa9bfde3 Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 10 Oct 2014 16:05:22 +0200 Subject: [PATCH] improved writing --- 7-inversion-of-control.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/7-inversion-of-control.md b/7-inversion-of-control.md index 7f255e7..8459237 100644 --- a/7-inversion-of-control.md +++ b/7-inversion-of-control.md @@ -2,7 +2,7 @@ ### Inversion of Control -In the last part you have set up a controller and were able to generate output with `echo`. But let's not forget that you have a nice object oriented HTTP abstraction available. But you still need to make it accessible inside the controller class. +In the last part you have set up a controller and generated output with `echo`. But let's not forget that you have a nice object oriented HTTP abstraction available. But right now it's not accessible inside your class. The sane option is to use [inversion of control](http://en.wikipedia.org/wiki/Inversion_of_control). This means that instead of giving the class the responsiblity of creating the object it needs, you just ask for them. This is done with [dependency injection](http://en.wikipedia.org/wiki/Dependency_injection).