@@ -309,37 +309,37 @@ Symfony provides the following env var processors:
309
309
310
310
.. code-block :: yaml
311
311
312
- # config/packages/sentry .yaml
312
+ # config/packages/lexik_jwt_authentication .yaml
313
313
parameters :
314
- sentry_host : ' 10.0.0.1 '
315
- env(SENTRY_DSN ) : ' http://%sentry_host%/project '
316
- sentry :
317
- dsn : ' %env(resolve:SENTRY_DSN )%'
314
+ jwt_config_dir : ' config/jwt '
315
+ env(JWT_SECRET_KEY ) : ' %kernel.project_dir%/%jwt_config_dir%/private.pem '
316
+ lexik_jwt_authentication :
317
+ secret_key : ' %env(resolve:JWT_SECRET_KEY )%'
318
318
319
319
.. code-block :: xml
320
320
321
- <!-- config/packages/sentry .xml -->
321
+ <!-- config/packages/lexik_jwt_authentication .xml -->
322
322
<?xml version =" 1.0" encoding =" UTF-8" ?>
323
323
<container xmlns =" http://symfony.com/schema/dic/services"
324
324
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
325
325
xsi : schemaLocation =" http://symfony.com/schema/dic/services
326
326
https://symfony.com/schema/dic/services/services-1.0.xsd" >
327
327
328
328
<parameters >
329
- <parameter key =" sentry_host " >10.0.0.1 </parameter >
330
- <parameter key =" env(SENTRY_DSN )" >http://%sentry_host%/project </parameter >
329
+ <parameter key =" jwt_config_dir " >config/jwt </parameter >
330
+ <parameter key =" env(JWT_SECRET_KEY )" >%kernel.project_dir%/%jwt_config_dir%/private.pem </parameter >
331
331
</parameters >
332
332
333
- <sentry : config dsn =" %env(resolve:SENTRY_DSN )%" />
333
+ <lexik_jwt_authentication : secret_key dsn =" %env(resolve:JWT_SECRET_KEY )%" />
334
334
</container >
335
335
336
336
.. code-block :: php
337
337
338
- // config/packages/sentry .php
339
- $container->setParameter('sentry_host ', '10.0.0.1 ');
340
- $container->setParameter('env(SENTRY_DSN )', 'http://%sentry_host%/project ');
341
- $container->loadFromExtension('sentry ', [
342
- 'dsn ' => '%env(resolve:SENTRY_DSN )%',
338
+ // config/packages/lexik_jwt_authentication .php
339
+ $container->setParameter('jwt_config_dir ', 'config/jwt ');
340
+ $container->setParameter('env(JWT_SECRET_KEY )', '%kernel.project_dir%/%jwt_config_dir%/private.pem ');
341
+ $container->loadFromExtension('lexik_jwt_authentication ', [
342
+ 'secret_key ' => '%env(resolve:JWT_SECRET_KEY )%',
343
343
]);
344
344
345
345
``env(csv:FOO) ``
0 commit comments