Skip to content

Commit

Permalink
Added missing container info
Browse files Browse the repository at this point in the history
  • Loading branch information
letr0n committed Feb 19, 2015
1 parent 128f2b5 commit be2f5b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 08_learn_more/00_command_bus.md
Expand Up @@ -177,4 +177,6 @@ Adding middlware like shown in the example above will decorate all command handl

$middleware = [TransactionMiddleware::class];

$commander->dispatch(new CreateUserCommand($email, $username, $password), [], $middleware);
$commander->dispatch(new CreateUserCommand($email, $username, $password), [], $middleware);

Middleware is instantiated by the [dependency injection container](:base_url:/docs/:version:/getting-started:dependency-injection) so you can easily inject all your dependencies using the constructor.

0 comments on commit be2f5b0

Please sign in to comment.