Download the PHP package bankiru/jsonrpc-server-bundle without Composer
On this page you can find all versions of the php package bankiru/jsonrpc-server-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bankiru/jsonrpc-server-bundle
More information about bankiru/jsonrpc-server-bundle
Files in bankiru/jsonrpc-server-bundle
Package jsonrpc-server-bundle
Short Description JSON-RPC server symfony bundle
License MIT
Informations about the package jsonrpc-server-bundle
JSON-RPC Server bundle
This bundle provides JSON-RPC 2.0 server ontop of the bankiru/rpc-server-bundle
library.
Serialization
This bundle uses rpc.view
event in order to serialize response if request
was instance of JsonRpcRequestInterface
and the response is not a
JsonRpcResponseInterface
object. You can bypass the serialization process
with sending pre-created response object or implementing your own view listener
Context
This library utilizes JMS Serializer Bundle
to automatically serialize non-JSON-RPC controller response to serialized view.
You can specify the serialization context at the routing level. Also you
could disable default context usage with with_default_context: false
Exception handling
Any unhandled exception from the controller would be automatically
converted to the proper JSON-RPC failure response with INTERNAL_ERROR (-32603) code.
If you want do display other error you could extend JsonRpcException
class or
configure it manually like following:
Specification
Refer to official JSON-RPC 2.0 specification at http://www.jsonrpc.org/specification
All versions of jsonrpc-server-bundle with dependencies
symfony/http-kernel Version ~2.7 || ~3.0
scaytrase/json-rpc-client Version ~1.0
bankiru/rpc-server-bundle Version ~1.1
nelmio/api-doc-bundle Version ~2.9
jms/serializer-bundle Version ~1.1