Skip to content

Commit

Permalink
JsonRpc Compatible with hyperf2.2 and hyperf3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PandaLIU-1111 committed Oct 14, 2022
1 parent e33991d commit 2509053
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Api/JsonRpcHttpApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,16 @@

class JsonRpcHttpApi extends AbstractServiceClient implements ApiInterface
{
protected string $serviceName = 'dtmserver';

protected string $protocol = 'jsonrpc-http';

protected ConfigInterface $config;

protected JsonRpcClientManager $jsonRpcClientManager;

public function __construct(ContainerInterface $container, DtmPathGenerator $pathGenerator, JsonRpcClientManager $jsonRpcClientManager)
{
parent::__construct($container);

// Compatible with hyperf2.2 and hyperf3.0
$this->serviceName = 'dtmserver';
$this->protocol = 'jsonrpc-http';
$this->pathGenerator = $pathGenerator;
$this->config = $container->get(ConfigInterface::class);
$this->jsonRpcClientManager = $jsonRpcClientManager;
Expand Down

0 comments on commit 2509053

Please sign in to comment.