2525 */
2626abstract class HttpProxyClient implements ProxyClient
2727{
28- /**
29- * Dispatcher for invalidation HTTP requests.
30- */
31- private Dispatcher $ httpDispatcher ;
32-
3328 private RequestFactoryInterface $ requestFactory ;
3429 private StreamFactoryInterface $ streamFactory ;
3530
@@ -43,20 +38,19 @@ abstract class HttpProxyClient implements ProxyClient
4338 /**
4439 * The base class has no options.
4540 *
46- * @param Dispatcher $dispatcher Helper to send instructions to the caching proxy
41+ * @param Dispatcher $httpDispatcher Helper to send instructions to the caching proxy
4742 * @param array $options Options for this client
4843 * @param RequestFactoryInterface|null $requestFactory Factory for PSR-7 messages. If none supplied,
4944 * a default one is created
5045 * @param StreamFactoryInterface|null $streamFactory Factory for PSR-7 streams. If none supplied,
5146 * a default one is created
5247 */
5348 public function __construct (
54- Dispatcher $ dispatcher ,
49+ private readonly Dispatcher $ httpDispatcher ,
5550 array $ options = [],
5651 ?RequestFactoryInterface $ requestFactory = null ,
5752 ?StreamFactoryInterface $ streamFactory = null ,
5853 ) {
59- $ this ->httpDispatcher = $ dispatcher ;
6054 $ this ->options = $ this ->configureOptions ()->resolve ($ options );
6155 $ this ->requestFactory = $ requestFactory ?: Psr17FactoryDiscovery::findRequestFactory ();
6256 $ this ->streamFactory = $ streamFactory ?: Psr17FactoryDiscovery::findStreamFactory ();
0 commit comments