From a710473db5b94d90f9c2a90d51621f70450f317f Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 16 Sep 2014 21:53:11 +0200 Subject: [PATCH] fixed link --- 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 1146007..b836e22 100644 --- a/7-inversion-of-control.md +++ b/7-inversion-of-control.md @@ -35,7 +35,7 @@ class HelloWorldController Please note that you are [importing](http://php.net/manual/en/language.namespaces.importing.php) `Http\Response` at the top of the file. This means that whenever you use `Response` inside this file, it will resolve to the fully qualified name. -In the contructor you are now explicitly asking for a `Http\Response`. In this case, `Http\Response` is an interface. So any class that implements the interface can be injected. See [type hinting](http://php.net/manual/en/language.oop5.typehinting.php) and [interfaces](php.net/manual/en/language.oop5.interfaces.php) for reference. +In the contructor you are now explicitly asking for a `Http\Response`. In this case, `Http\Response` is an interface. So any class that implements the interface can be injected. See [type hinting](http://php.net/manual/en/language.oop5.typehinting.php) and [interfaces](http://php.net/manual/en/language.oop5.interfaces.php) for reference. Now the code will result in an error because you are not actually injecting anything. So let's fix that in your `Bootstrap.php` where you dispatch when a route was found: