File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/Fapi/HttpClient/Bridges/NetteDI Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ public function loadConfiguration(): void
4040
4141 if ($ config ['bar ' ]) {
4242 $ container ->addDefinition ($ this ->prefix ('barHttpClient ' ))
43- ->setType ($ httpClientClass )
43+ ->setFactory ($ httpClientClass )
44+ ->setType (IHttpClient::class)
4445 ->setAutowired (false );
4546
4647 $ container ->addDefinition ($ this ->prefix ('httpClient ' ))
@@ -54,7 +55,8 @@ public function loadConfiguration(): void
5455
5556 if ($ config ['logging ' ]) {
5657 $ container ->addDefinition ($ this ->prefix ('loggingHttpClient ' ))
57- ->setType ($ httpClientClass )
58+ ->setFactory ($ httpClientClass )
59+ ->setType (IHttpClient::class)
5860 ->setAutowired (false );
5961
6062 $ container ->addDefinition ($ this ->prefix ('tracyToPsrLogger ' ))
You can’t perform that action at this time.
0 commit comments