mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
add Timiki RpcServerBundle, RpcClientBundle
This commit is contained in:
@@ -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%/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user