generated from dev/symfony-5-cli-template
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.
33 lines
912 B
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']
|