Skip to content

Commit

Permalink
Documentaton: route guard plugin
Browse files Browse the repository at this point in the history
see: #79
  • Loading branch information
prolic committed Oct 20, 2015
1 parent 9004a16 commit 61f387e
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 61f387e

Please sign in to comment.