@@ -27,21 +27,21 @@ Requires php 7.3 or newer.
27
27
First configure the basic parameters, either using a DSN or as separate parameters:
28
28
29
29
``` yaml
30
- unleash_symfony_client :
30
+ unleash_client :
31
31
dsn : http://localhost:4242/api&instance_id=myCoolApp-Server1&app_name=myCoolApp
32
32
` ` `
33
33
34
34
or
35
35
36
36
` ` ` yaml
37
- unleash_symfony_client :
37
+ unleash_client :
38
38
app_url : http://localhost:4242/api
39
39
instance_id : myCoolApp-Server1
40
40
app_name : myCoolApp
41
41
` ` `
42
42
43
43
> Tip: Generate the default config by running
44
- > ` php bin/console config:dump unleash_symfony_client > config/packages/unleash_symfony_client .yaml`
44
+ > ` php bin/console config:dump unleash_client > config/packages/unleash_client .yaml`
45
45
> which will create the default config file which you can then tweak
46
46
47
47
` ` ` php
@@ -196,7 +196,7 @@ field to use for the user id, by default it uses either the
196
196
or `Symfony\Component\Security\Core\User\UserInterface::getUsername()`.
197
197
198
198
` ` ` yaml
199
- unleash_symfony_client :
199
+ unleash_client :
200
200
context:
201
201
user_id_field: id
202
202
` ` `
@@ -216,7 +216,7 @@ your value to start with `>` and not be an expression, escape it using `\`. All
216
216
variable which is either the user object or null.
217
217
218
218
` ` ` yaml
219
- unleash_symfony_client :
219
+ unleash_client :
220
220
context:
221
221
custom_properties:
222
222
myCustomProperty: someValue # just a good old string
@@ -284,7 +284,7 @@ disable any of them in case they would clash with your own functions/filters/tes
284
284
The default is that everything is enabled if twig is installed.
285
285
286
286
` ` ` yaml
287
- unleash_symfony_client :
287
+ unleash_client :
288
288
twig:
289
289
functions: true
290
290
filters: true
@@ -392,7 +392,7 @@ If you want to make use of one of the default strategies, you can, all of them s
392
392
If for some reason you want to disable any of the built-in strategies, you can do so in config.
393
393
394
394
` ` ` yaml
395
- unleash_symfony_client :
395
+ unleash_client :
396
396
disabled_strategies:
397
397
- default
398
398
- remoteAddress
@@ -405,7 +405,7 @@ By default the services are set to make use of `symfony/http-client`, `nyholm/ps
405
405
You can overwrite the default values in config :
406
406
407
407
` ` ` yaml
408
- unleash_symfony_client :
408
+ unleash_client :
409
409
http_client_service: my_custom_http_client_service
410
410
request_factory_service: my_custom_request_factory_service
411
411
cache_service: my_custom_cache_service
@@ -440,7 +440,7 @@ final class MyBootstrap implements BootstrapProvider
440
440
}
441
441
` ` `
442
442
` ` ` yaml
443
- unleash_symfony_client :
443
+ unleash_client :
444
444
bootstrap: '@MyBootstrap'
445
445
` ` `
446
446
@@ -453,7 +453,7 @@ Let's say you create a file called `bootstrap.json` in your config directory, th
453
453
bootstrap :
454
454
455
455
` ` ` yaml
456
- unleash_symfony_client :
456
+ unleash_client :
457
457
bootstrap: 'file://%kernel.project_dir%/config/bootstrap.json'
458
458
` ` `
459
459
@@ -470,7 +470,7 @@ Note that when you disable communication with Unleash and don't provide a bootst
470
470
> The usually required parameters (app name, instance id, app url) are not required when communication is disabled.
471
471
472
472
` ` ` yaml
473
- unleash_symfony_client :
473
+ unleash_client :
474
474
bootstrap: '@MyBootstrap'
475
475
cache_ttl: 0
476
476
fetching_enabled: false
@@ -515,12 +515,12 @@ Options:
515
515
516
516
# # Configuration reference
517
517
518
- This is the autogenerated config dump (by running `php bin/console config:dump unleash_symfony_client `) :
518
+ This is the autogenerated config dump (by running `php bin/console config:dump unleash_client `) :
519
519
520
520
` ` ` yaml
521
- # Default configuration for extension with alias: "unleash_symfony_client "
522
- # Default configuration for extension with alias: "unleash_symfony_client "
523
- unleash_symfony_client :
521
+ # Default configuration for extension with alias: "unleash_client "
522
+ # Default configuration for extension with alias: "unleash_client "
523
+ unleash_client :
524
524
525
525
# You can provide the connection details as a DSN instead of app_url, instance_id and app_name. DSN takes precedence over individual parameters.
526
526
dsn: null # Example: 'https://localhost:4242/api?instance_id=myCoolApp-Server1&app_name=myCoolApp'
0 commit comments