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
You must always resolve InitiatorHolder from the service container instead of `InitiatorHolder::getInstance`.
29
+
This is made forLaravel Octane compatibility.
30
+
28
31
### HTTP Requests
29
32
30
33
#### Setting initiator
@@ -47,13 +50,13 @@ Add `Ensi\LaravelInitiatorPropagation\ParseInitiatorHeaderMiddleware` to `app/Ht
47
50
This middleware parses `X-Initiator` HTTP header, deserializes it into `InitiatorDTO` object and places it to the `InitiatorHolder` singleton.
48
51
49
52
#### Propagating initiator to outcomming HTTP request
50
-
The package provides a `Ensi\InitiatorPropagation\PropagateInitiatorGuzzleMiddleware` Guzzle Middleware that converts ` resolve(InitiatorHolder::class)->getInitiator()` back to `X-Inititator` header and sets this header for all outcomming guzzle request.
53
+
The package provides a `Ensi\LaravelInitiatorPropagation\PropagateInitiatorLaravelGuzzleMiddleware` Guzzle Middleware that converts ` resolve(InitiatorHolder::class)->getInitiator()` back to `X-Inititator` header and sets this header for all outcomming guzzle request.
51
54
52
55
You can add it to your guzzle stack like this:
53
56
54
57
```php
55
58
$handlerStack = new HandlerStack(Utils::chooseHandler());
0 commit comments