Skip to content

Commit

Permalink
Documentation for #181
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Aug 12, 2014
1 parent b69c2aa commit 2472e6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/container.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ For example controllers, models, …

If you need to use the `make()` method inside a service, or a controller, or whatever, it is
recommended you type-hint against `FactoryInterface`. That avoids coupling your code to the container.
`DI\FactoryInterface` is automatically bound to `DI\Container` so you can inject it without any configuration.

## call()

Expand Down Expand Up @@ -144,6 +145,7 @@ This leaves the liberty to the developer writing controllers to get request para

As with `make()`, `call()` is defined in `DI\InvokerInterface` so that you can type-hint
against that interface without coupling yourself to the container.
`DI\InvokerInterface` is automatically bound to `DI\Container` so you can inject it without any configuration.

```php
namespace DI;
Expand Down

0 comments on commit 2472e6e

Please sign in to comment.