You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consuming message should be done by running a command in deamon mode. While PHP is not intended to do that, you can use [supervisor](http://supervisord.org/index.html) for that.
292
298
293
-
The **flow** of the consummer is rather simple:
299
+
The **flow** of the consumer is rather simple:
294
300
CLI Consumers -> Get message -> Passes it to the `message_processor` key from configuration.
295
301
296
302
A message processor is a class that implements `NeedleProject\LaravelRabbitMq\Processor` interface. If you do no want to handle acknowledgement you can extend `\NeedleProject\LaravelRabbitMq\Processor\AbstractMessageProcessor` which require implementation of `processMessage(AMQPMessage $message): bool` method.
@@ -320,19 +326,19 @@ rabbitmq:publish | Publish one message using a consumer | `php artisan rabbitmq:
320
326
rabbitmq:setup | Creates all queues and exchanges | `php artisan rabbitmq:setup` or `php artisan rabbitmq:setup --force`. **NOTE** When using force, all queues and exchanges will be deleted first and then re-created.
321
327
322
328
### 3.4. Custom Message Processor
323
-
At the current moment there is the posibility to either implement the `MessageProcessorInterface` class or extend the `AbstractMessageProcessor`.
329
+
At the current moment there is the possibility to either implement the `MessageProcessorInterface` class or extend the `AbstractMessageProcessor`.
324
330
325
331
When using the `AbstractMessageProcessor`, you will have access to extra API than can be used in your `processMessage()`:
326
332
```php
327
333
protected function ack(AMQPMessage $message);
328
334
protected function nack(AMQPMessage $message, bool $redeliver = true);
329
335
```
330
336
331
-
# 4. Contribute
332
-
You are free to contribute by submiting pull request or reporting any issue in Github.
337
+
# 5. Contribute
338
+
You are free to contribute by submitting pull request or reporting any issue in Github.
333
339
At the current stage of the project, no contribution procedure is defined.
334
340
335
-
## 4.1 Local Development
341
+
## 5.1 Local Development
336
342
Run composer install (with ignore-platform-reqs to avoid missing extensions):
337
343
```bash
338
344
docker run --rm -v $(pwd):/app jitesoft/phpunit:8.1 composer install --ignore-platform-req=ext-sockets
@@ -342,3 +348,12 @@ Run unit tests via Docker:
342
348
```bash
343
349
docker run --rm -v $(pwd):/app jitesoft/phpunit:8.1 phpunit --configuration phpunit.xml
344
350
```
351
+
352
+
## 5.2. Required Help
353
+
There are multiple topics for which the library needs help
354
+
- CI Pipeline: There is a need for a configuration of *scrutinizer* (or any other tool) that can cover running tests for all supported PHP Versions and Laravel Framework versions
355
+
- Documentation: Any improvement to easy the use of the library it's welcome
356
+
- Examples: A section of examples that proves the library's different real-world scenario examples
357
+
358
+
## 6. Special "Thank you"
359
+
Special "Thank you" goes out to the library [contributors](https://github.com/needle-project/laravel-rabbitmq/graphs/contributors).
<propertyname="unwanted-functions"value="var_dump,print_r,debug_zval_dump,debug_print_backtrace,dd,dump"description="Comma separated list of suspect function images." />
0 commit comments