added docusaurus admonitions to docs

This commit is contained in:
Shreedhar Hegde committed 2022-04-28 08:28:21 +05:30
1 parent d162cef4c8
commit 1241fb7b2c
25 files changed
+242 -60

No files matched your search

@@ -69,7 +69,11 @@ export default OrderNotifierSubscriber;
This subscriber will register the method `handleOrder` as one of the handlers of the `order.placed` event. The method `handleOrder` will be executed every time an order is placed, and it will receive the order ID in the `data` parameter. You can then use the order’s details to perform any kind of task you need.
> The `data` object will not contain other order data. Only the ID of the order. You can retrieve the order information using the `orderService`.
:::note
The `data` object will not contain other order data. Only the ID of the order. You can retrieve the order information using the `orderService`.
:::
## Using Services in Subscribers