Merge pull request #25 from marcel-burkhard/patch-1
Update 08-dependency-injector.md
This commit is contained in:
commit
b0bf75da2b
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ Install the Auryn package and then create a new file called `Dependencies.php` i
|
|||
```php
|
||||
<?php
|
||||
|
||||
$injector = new \Auryn\Provider;
|
||||
$injector = new \Auryn\Injector;
|
||||
|
||||
$injector->alias('Http\Response', 'Http\HttpResponse');
|
||||
$injector->share('Http\HttpRequest');
|
||||
|
@ -94,4 +94,4 @@ As you can see now the class has two dependencies. Try to access the page with a
|
|||
|
||||
Congratulations, you have now successfully laid the groundwork for your application.
|
||||
|
||||
[<< previous](07-inversion-of-control.md) | [next >>](09-templating.md)
|
||||
[<< previous](07-inversion-of-control.md) | [next >>](09-templating.md)
|
||||
|
|
Loading…
Reference in a new issue