Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nikush committed Mar 2, 2015
1 parent 84081b5 commit 52c6094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ This tells the container that it should inject the `PusherEventPusher` when a cl
<a name="contextual-binding"></a>
## Contextual Binding

Sometimes you may have two classes that utilize the same interface, but you wish to inject different implementations into each class. For example, when our system receives a new Order, we may want to send an event via [PubNub](http://www.pubnub.com/) rather than Pusher. Laravel provides a simple, fluent interface for definining this behavior:
Sometimes you may have two classes that utilize the same interface, but you wish to inject different implementations into each class. For example, when our system receives a new Order, we may want to send an event via [PubNub](http://www.pubnub.com/) rather than Pusher. Laravel provides a simple, fluent interface for defining this behavior:

$this->app->when('App\Handlers\Commands\CreateOrderHandler')
->needs('App\Contracts\EventPusher')
Expand Down

0 comments on commit 52c6094

Please sign in to comment.