diff --git a/8-dependency-injector.md b/8-dependency-injector.md index 1cfef96..110332a 100644 --- a/8-dependency-injector.md +++ b/8-dependency-injector.md @@ -68,4 +68,38 @@ $class->$method($vars); Now all your controller constructor dependencies will be automatically resolved with Auryn. -to be continued... +Go back to your `HelloWorldController.php` and change it to the following: + +```php +request = $request; + $this->response = $response; + } + + public function hello() + { + $content = '