Skip to content

Commit

Permalink
Merge pull request #80 from prooph/prolic-patch-1
Browse files Browse the repository at this point in the history
Documentaton: route guard plugin
  • Loading branch information
codeliner committed Oct 20, 2015
2 parents 9004a16 + 61f387e commit f1c7dd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ does not allow access to the command, an [UnauthorizedException](../src/Prooph/S
If you want to protect the query bus, you can also use the route guard, but in some situations, you want to deny access based on the result
of the query. In this case it's important to make checks on the query results.

The route guard passes the message to the [AuthorizationService](../src/Prooph/ServiceBus/Plugin/Guard/AuthorizationService.php) as context, so you can make assertions on it.

We also provide [service-bus-zfc-rbac-brdige](https://github.com/prooph/service-bus-zfc-rbac-bridge), a bridge to marry these guards with ZFC-Rbac.
You can also find some configuration examples in this repository.

Expand Down Expand Up @@ -168,4 +170,4 @@ $eventBus->utilize($messageProducerPlugin);

//Each event will now be routed to the async message producer
$eventBus->dispatch($domainEvent);
```
```

0 comments on commit f1c7dd1

Please sign in to comment.