Implementation a microservice architecture with JSON-RPC 2.0 communication between backend and frontend https://www.jsonrpc.org/specification
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

33 lines
912 B

parameters:
services:
_defaults:
autowire: true
autoconfigure: true
App\:
resource: '../src/'
exclude:
- '../src/DependencyInjection/'
- '../src/Entity/'
- '../src/Kernel.php'
- '../src/Tests/'
App\Controller\:
resource: '../src/Controller/'
tags: ['controller.service_arguments']
jsonrpc.weather.getByDate:
class: App\Method\Weather\GetByDateMethod
tags:
- { name: 'json_rpc_http_server.jsonrpc_method', method: 'weather.getByDate' }
jsonrpc.weather.getHistory:
class: App\Method\Weather\GetHistoryMethod
tags:
- { name: 'json_rpc_http_server.jsonrpc_method', method: 'weather.getHistory' }
mapping_aware_service:
public: true
class: App\Collector\MappingCollector
tags: ['json_rpc_http_server.method_aware']