Changes for page 1. Встановлення
Last modified by Ashterix on 2024/07/11 09:57
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - 1.Installation1 +Installation - Content
-
... ... @@ -6,7 +6,7 @@ 6 6 7 7 To ensure that adding a package automatically configures your Symfony Flex, make the following changes to your {{code language="none"}}composer.json{{/code}} 8 8 9 -{{code language="json" layout="LINENUMBERS" title="composer.json"}}9 +{{code language="json"}} 10 10 { 11 11 "extra" : { 12 12 "symfony": { ... ... @@ -42,8 +42,9 @@ 42 42 43 43 Ensure that the package is automatically registered in your project's {{code language="none"}}config/bundles.php{{/code}} file: 44 44 45 -{{code language="php" layout="LINENUMBERS" title="config/bundles.php"}}45 +{{code language="php"}} 46 46 <?php 47 +// config/bundles.php 47 47 48 48 return [ 49 49 // ... ... ... @@ -64,7 +64,8 @@ 64 64 65 65 For manual configuration of the bundle, add to the {{code language="none"}}config/packages{{/code}} directory a file named {{code language="none"}}ufo_json_rpc.yaml{{/code}} with the following content: 66 66 67 -{{code language="yaml" layout="LINENUMBERS" title="config/packages/ufo_json_rpc.yaml"}} 68 +{{code language="yaml"}} 69 +# config/packages/ufo_json_rpc.yaml 68 68 ufo_json_rpc: 69 69 security: 70 70 protected_methods: ['POST'] # Protection of GET and POST requests ... ... @@ -98,7 +98,8 @@ 98 98 99 99 For manual configuration of the bundle, add to the {{code language="none"}}config/routes{{/code}} directory a file named {{code language="none"}}ufo_json_rpc.yaml{{/code}} with the following content: 100 100 101 -{{code language="yaml" layout="LINENUMBERS" title="config/routes/ufo_json_rpc.yaml"}} 103 +{{code language="yaml"}} 104 +# config/routes/ufo_json_rpc.yaml 102 102 ufo_json_rpc: 103 103 resource: ../../vendor/ufo-tech/json-rpc-bundle/config/router.yaml 104 104 prefix: /api ... ... @@ -108,7 +108,8 @@ 108 108 If left as is, the RPC API will be accessible at {{code language="none"}}/api{{/code}} e.g. {{code language="none"}}https://example.com/api{{/code}} 109 109 If you need to change the path, modify the route configuration as follows: 110 110 111 -{{code language="yaml" layout="LINENUMBERS" title="config/routes/ufo_json_rpc.yaml"}} 114 +{{code language="yaml"}} 115 +# config/routes/ufo_json_rpc.yaml 112 112 ufo_json_rpc_bundle: 113 113 resource: ../../vendor/ufo-tech/json-rpc-bundle/config/router.yaml 114 114 prefix: /my_custom_api_route # specify an alternative path here