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 -Installation 1 +1. 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"}} 9 +{{code language="json" layout="LINENUMBERS" title="composer.json"}} 10 10 { 11 11 "extra" : { 12 12 "symfony": { ... ... @@ -42,9 +42,8 @@ 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"}} 45 +{{code language="php" layout="LINENUMBERS" title="config/bundles.php"}} 46 46 <?php 47 -// config/bundles.php 48 48 49 49 return [ 50 50 // ... ... ... @@ -65,8 +65,7 @@ 65 65 66 66 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: 67 67 68 -{{code language="yaml"}} 69 -# config/packages/ufo_json_rpc.yaml 67 +{{code language="yaml" layout="LINENUMBERS" title="config/packages/ufo_json_rpc.yaml"}} 70 70 ufo_json_rpc: 71 71 security: 72 72 protected_methods: ['POST'] # Protection of GET and POST requests ... ... @@ -100,8 +100,7 @@ 100 100 101 101 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: 102 102 103 -{{code language="yaml"}} 104 -# config/routes/ufo_json_rpc.yaml 101 +{{code language="yaml" layout="LINENUMBERS" title="config/routes/ufo_json_rpc.yaml"}} 105 105 ufo_json_rpc: 106 106 resource: ../../vendor/ufo-tech/json-rpc-bundle/config/router.yaml 107 107 prefix: /api ... ... @@ -111,8 +111,7 @@ 111 111 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}} 112 112 If you need to change the path, modify the route configuration as follows: 113 113 114 -{{code language="yaml"}} 115 -# config/routes/ufo_json_rpc.yaml 111 +{{code language="yaml" layout="LINENUMBERS" title="config/routes/ufo_json_rpc.yaml"}} 116 116 ufo_json_rpc_bundle: 117 117 resource: ../../vendor/ufo-tech/json-rpc-bundle/config/router.yaml 118 118 prefix: /my_custom_api_route # specify an alternative path here