From 13a5d0fb0196eb91f065456ad648b6debca200ee Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 17 Sep 2014 22:06:16 +0200 Subject: [PATCH] added code formatting --- 6-controllers.md | 6 +++--- 7-inversion-of-control.md | 4 ++-- 8-dependency-injector.md | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/6-controllers.md b/6-controllers.md index ca18500..99a41a1 100644 --- a/6-controllers.md +++ b/6-controllers.md @@ -6,7 +6,7 @@ When I talk about a controller in this tutorial then I am just referring to a cl Create a new folder inside the `src/` folder with the name `HelloWorld`. This will be where all your hello world related code will end up in. In there, create `HelloWorldController.php`. -``` +```php $method($vars); ``` diff --git a/8-dependency-injector.md b/8-dependency-injector.md index 8ef7e8a..2290598 100644 --- a/8-dependency-injector.md +++ b/8-dependency-injector.md @@ -5,7 +5,6 @@ A dependency injector resolves the dependencies of your class and makes sure that the correct objects are injected when the class is instantiated. My favorite injector is [Auryn](https://github.com/rdlowrey/Auryn), so install `rdlowrey/auryn` with composer or use one of the alternatives below: - [Pimple](http://pimple.sensiolabs.org/), [Orno DI](https://github.com/orno/di), [PHP-DI](https://github.com/mnapoli/PHP-DI) Create a new file called `Dependencies.php` in your `src/` folder. In there add the following content: