add Timiki RpcServerBundle, RpcClientBundle

This commit is contained in:
n.netesin
2019-09-29 20:34:31 +03:00
parent f5b77de6d4
commit 12f1ca2482
6 changed files with 65 additions and 0 deletions
@@ -0,0 +1,9 @@
# Read the documentation: https://github.com/timiki/rpc-client-bundle
rpc_client:
# connection:
# name_1: RPC_SERVER_URL_1
# name_2: RPC_SERVER_URL_2
connection: ~
@@ -0,0 +1,9 @@
{
"aliases": ["rpc-client", "timiki-rpc-client"],
"bundles": {
"Timiki\\Bundle\\RpcClientBundle\\RpcClientBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}
@@ -0,0 +1,33 @@
# Read the documentation: https://github.com/timiki/rpc-server-bundle
rpc_server:
# mapping configs
#
# Default mapping
# mapping: '%kernel.root_dir%/Method'
#
# Multi dir mapping
# mapping:
# - '%kernel.root_dir%/Method1'
# - '%kernel.root_dir%/Method2'
#
# Multi handler|dir mapping
# mapping:
# v1:
# - '%kernel.root_dir%/Method/V1'
# v2:
# - '%kernel.root_dir%/Method/V2'
#
mapping: '%kernel.root_dir%/Method'
# id cache service, must be instance of Doctrine\Common\Cache\CacheProvider
# by default use file cache
cache: ~
# id serializer service, must be instance of Timiki\Bundle\RpcServerBundle\Serializer\SerializerInterface
# by default use 'rpc.server.serializer.base' service
serializer: 'rpc.server.serializer.base'
@@ -0,0 +1,4 @@
rpc:
path: /rpc
defaults: { _controller: RpcServerBundle:Rpc:handler }
methods: [POST]
@@ -0,0 +1,10 @@
{
"aliases": ["rpc-server", "timiki-rpc-server"],
"bundles": {
"Timiki\\Bundle\\RpcServerBundle\\RpcServerBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/"
}
}