Skip to content

Commit a2019ec

Browse files
authored
Merge pull request #57 from php-etl/rejection-minimal-options
rejection: option "port" is also required
2 parents 84cc03b + 9a9ecf4 commit a2019ec

File tree

1 file changed

+33
-22
lines changed

1 file changed

+33
-22
lines changed

content/feature/rejection/_index.en.md

Lines changed: 33 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The rejection feature allows you to manage the rejections that may occur in your
1919

2020
## Installation
2121

22-
This plugin is already integrated into the Satellite package, so you can't require it with the composer.
22+
This plugin is already integrated into the Satellite package, so you can't require it with composer.
2323

2424
## Usage
2525

@@ -28,29 +28,39 @@ When you configure your pipeline, you can add the configuration of this feature
2828
First, you must use the `rejection` option.
2929

3030
```yaml
31-
rejection:
32-
# ...
31+
- example_step:
32+
foo: bar
33+
rejection:
34+
# ...
3335
```
3436

3537
### With RabbitMQ
3638

37-
This feature supports sending to RabbitMQ instances.
39+
This feature supports sending to RabbitMQ instances. For this feature to work you will need to install [`bunny/bunny`](https://packagist.org/packages/bunny/bunny):
40+
41+
```shell
42+
composer require bunny/bunny
43+
```
3844

3945
#### Basic configuration
4046

41-
To enable a connection to your RabbitMQ application, you need at least 3 options which are `host`, `vhost` and `topic`.
47+
To enable a connection to your RabbitMQ application, you need at least 4 options which are `host`, `vhost`, `topic` and `port`.
4248

4349
- `host`: the name of your host name
4450
- `vhost`: the virtual host of your RabbitMQ instance
4551
- `topic`: the name of the queue to which the rejects will be sent
52+
- `port`: the port that your RabbitMQ application uses
4653

4754
```yaml
48-
rejection:
49-
destinations:
50-
- rabbitmq:
51-
host: rabbitmq.example.com
52-
vhost: /
53-
topic: foo.rejects
55+
- example_step:
56+
# ...
57+
rejection:
58+
destinations:
59+
- rabbitmq:
60+
host: rabbitmq.example.com
61+
vhost: /
62+
topic: foo.rejects
63+
port: 5672
5464
```
5565
5666
#### Additional options
@@ -59,18 +69,19 @@ This feature additionally takes some options that can be used when configuring t
5969
6070
- `user`: the username of your user
6171
- `password`: the password of your user
62-
- `port`: the port that your RabbitMQ application uses
6372
- `exchange`: the name of the exchange to be used
6473

6574
```yaml
66-
rejection:
67-
destinations:
68-
- rabbitmq:
69-
host: rabbitmq.example.com
70-
port: 5672
71-
user: 'guest'
72-
password: 'guest'
73-
vhost: /
74-
topic: foo.rejects
75-
exchange: 'amq.direct'
75+
- example_step:
76+
# ...
77+
rejection:
78+
destinations:
79+
- rabbitmq:
80+
host: rabbitmq.example.com
81+
vhost: /
82+
topic: foo.rejects
83+
port: 5672
84+
user: 'guest'
85+
password: 'guest'
86+
exchange: 'amq.direct'
7687
```

0 commit comments

Comments
 (0)