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: