Update 08-dependency-injector.md
Auryn\Provider was replaced with Auryn\Injector
This commit is contained in:
parent
86064842f4
commit
b1add84072
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