Git Product home page Git Product logo

eazy-jsonrpc's People

Contributors

agentsib avatar ferossa avatar ha-sash avatar sas1024 avatar sergeyfast avatar shuler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eazy-jsonrpc's Issues

Ability to update Client Options on the Guzzle Client

I am connecting to a JSON-RPC service and used the generator to create my Client. This API requires a header for Authorization, but I don't believe I am able to edit the property $ClientOptions or the $client directly on the BaseJsonRpcClient. Both properties are private, so I can not adjust the generated client to pass the additional headers that are needed. Should $ClientOptions be a protected variable instead of private? Perhaps even make the Guzzle Client a protected variable, so settings can be adjusted as needed? Or another way would be to pass an optional parameter to the BaseJsonRpcClient constructor to use as the ClientOptions for the Guzzle Client. My apologizes if I missed an obvious answer to this problem. But I can't see a way to pass custom headers to the Guzzle Client.

BaseJsonRpcClient is broken: Class "" not found

Parameter $returnType is hardcoded to empty string so "new $returnType" results in fatal error "Class "" not found"
Can be fixed with

$result = $returnType ? $mapper->map( $call->Result, new $returnType ) : $call->Result;

array_key_exists(): Argument #2 ($array) must be of type array, stdClass given

Hi!
After upgrading PHP to version 8 I've started getting an error:

Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, stdClass given in /app/vendor/sergeyfast/eazy-jsonrpc/src/EazyJsonRpc/BaseJsonRpcServer.php on line 244

if ( !$param->isDefaultValueAvailable() && !array_key_exists( $param->getName(), $params ) ) {

I was able to make it work just replacing array_key_exists call to the following one:

!property_exists( $params, $param->getName() )

Thank you ๐Ÿ™Œ

License

Is this project Open Source? If you don't add a license, it's not Open Source even if the code is public. By default, everything is copyrighted (all right reserved) even if not explicitly written. That's why there are licenses that circumvent that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.