Skip to content

Commit

Permalink
Update docs for webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Neirda24 committed Nov 16, 2024
1 parent 44764dd commit f8a1de9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/async/native.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ sensiolabs_gotenberg:
```
Each named configuration requires at least a `success` URL which can be set either through a plain URL (`sensiolabs_gotenberg.webhook.{name}.success.url`) or by using a defined route in your application (`sensiolabs_gotenberg.webhook.{name}.success.route`).

Here are some examples :

```yaml
Expand Down Expand Up @@ -126,6 +127,7 @@ sensiolabs_gotenberg:
> [!WARNING]
> When using both `config_name` and a custom configuration on a builder,
> it will load the named configuration and merge it with the builder's configuration.
>
> See the following example :

```yaml
Expand Down Expand Up @@ -186,6 +188,8 @@ $builder = $this->gotenberg->pdf()->html()
```

> [!WARNING]
> If combining both `->webhookConfiguration()` & `->webhookUrl()`, the order is important
> If combining both `->webhookConfiguration()` & `->webhookUrl()`, the order is important :
>
> If calling `->webhookConfiguration()` first then `->webhookUrl()` will override only the "success" part.
>
> If calling `->webhookUrl()` first then `->webhookConfiguration()` totally overrides previously set values.

0 comments on commit f8a1de9

Please sign in to comment.