File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -309,8 +309,6 @@ configuration file using a special syntax: wrap the parameter name in two ``%``
309
309
# any string surrounded by two % is replaced by that parameter value
310
310
email_address : ' %app.admin_email%'
311
311
312
- # ...
313
-
314
312
.. code-block :: xml
315
313
316
314
<!-- config/packages/some_package.xml -->
@@ -333,13 +331,17 @@ configuration file using a special syntax: wrap the parameter name in two ``%``
333
331
334
332
// config/packages/some_package.php
335
333
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
334
+ use function Symfony\Component\DependencyInjection\Loader\Configurator\param;
336
335
337
336
return static function (ContainerConfigurator $container): void {
338
337
$container->extension('some_package', [
339
- // any string surrounded by two % is replaced by that parameter value
340
- 'email_address' => '% app.admin_email%' ,
338
+ // when using the param() function, you only have to pass the parameter name...
339
+ 'email_address' => param(' app.admin_email') ,
341
340
342
- // ...
341
+ // ... but if you prefer it, you can also pass the name as a string
342
+ // surrounded by two % (same as in YAML and XML formats) and Symfony will
343
+ // replace it by that parameter value
344
+ 'email_address' => '%app.admin_email%',
343
345
]);
344
346
};
345
347
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ this behavior by using the ``lock`` key like:
50
50
lock : ['memcached://m1.docker', 'memcached://m2.docker']
51
51
lock : ' redis://r1.docker'
52
52
lock : ['redis://r1.docker', 'redis://r2.docker']
53
+ lock : ' rediss://r1.docker?ssl[verify_peer]=1&ssl[cafile]=...'
53
54
lock : ' zookeeper://z1.docker'
54
55
lock : ' zookeeper://z1.docker,z2.docker'
55
56
lock : ' zookeeper://localhost01,localhost02:2181'
You can’t perform that action at this time.
0 commit comments