We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents deef5e8 + 1effffd commit f5ba2b0Copy full SHA for f5ba2b0
1 file changed
README.md
@@ -9,12 +9,14 @@ With this library you will be able to introduce re-try approach in simple way:
9
1. Create configuration
10
2. When your application start, please add next 2 rows in the begining:
11
```php
12
-$retry = new ApacheBorys\Retry\ExceptionHandler($config);
+$factory = new \ApacheBorys\Retry\HandlerFactory($config);
13
+$retry = $factory->createExceptionHandler($yourContainer);
14
$retry->initHandler();
15
```
16
3. Start by another process code like that:
17
-$worker = new ApacheBorys\Retry\MessageHandler($config);
18
19
+$worker = $factory->createMessageHandler($yourContainer);
20
while (true) {
21
$worker->processRetries();
22
sleep(1);
0 commit comments