Changes for page Версія 6: Налаштування
Last modified by Ashterix on 2024/07/11 10:08
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - 2. Bundle config1 +Version 6. Bundle config - Content
-
... ... @@ -2,6 +2,11 @@ 2 2 {{toc/}} 3 3 {{/box}} 4 4 5 +{{error}} 6 +**WARNING!!! **This version of the documentation is out of date. 7 +In JsonRpcBundle version 7, the configuration has undergone significant changes and is not backwards compatible with version 6. 8 +{{/error}} 9 + 5 5 (% class="wikigeneratedid" %) 6 6 All bundle settings are located in the file {{code language="none"}}config/packages/ufo_json_rpc.yaml{{/code}}. 7 7 ... ... @@ -53,6 +53,9 @@ 53 53 - RFC Standards: Header requirements are regulated by RFC documents that define standards for Internet protocols. For example, common headers and their use are described in RFC 7231. 54 54 {{/spoiler}} 55 55 61 + 62 + 63 + 56 56 == Parameter {{code language="none"}}clients_tokens{{/code}} == 57 57 58 58 Now you need to specify an array of client tokens that will have access to the API. ... ... @@ -161,7 +161,7 @@ 161 161 162 162 = Block {{code language="none"}}async{{/code}} = 163 163 164 -This block is for configuring [[asynchronous transport>>doc:.functionality.async.WebHome]]. 172 +This block is for configuring [[asynchronous transport>>doc:docs.JsonRpcBundle.functionality.async.WebHome]]. 165 165 166 166 Add the parameter {{code language="none"}}rpc_async{{/code}} which contains a string in DSN format. This string is the configuration for [[Symfony Messenger>>https://symfony.com/doc/current/messenger.html]], and it points to the asynchronous transport where the RPC Server will be waiting for incoming requests if you have a consumer running ({{code language="none"}}php bin/console messenger:consume rpc_async{{/code}}). For a more detailed understanding of this process, read the [[Symfony Messenger documentation>>https://symfony.com/doc/current/messenger.html]]. 167 167 ... ... @@ -292,7 +292,7 @@ 292 292 (% class="box infomessage" %) 293 293 ((( 294 294 In this example, I removed the content of the objects symfony_assertions to simplify the example. 295 -For more information on method validation, see the page **[[Validate procedures>>doc:.add_rpc_service.assertions.WebHome]]** 303 +For more information on method validation, see the page **[[Validate procedures>>doc:docs.JsonRpcBundle.add_rpc_service.assertions.WebHome]]** 296 296 ))) 297 297 298 298 {{code language="json" layout="LINENUMBERS" title="GET: /api"}}