Closed
Description
Q | A |
---|---|
Bug report? | no |
Feature request? | no |
BC Break report? | yes |
RFC? | no |
Symfony version | 3.3.11 |
Related to this thread: #24673
With this commit it's not possible anymore to use an environment parameter as name of in_memory providers. It's not really a big problem but it's a BC break when upgrading from 3.3.10 to 3.3.11. Is it wanted?
Example:
parameters:
admin_username: '%env(ADMIN_USERNAME)%'
admin_password: '%env(ADMIN_PASSWORD)%'
providers:
in_memory:
memory:
users:
- { name: "%admin_username%", password: "%admin_password%", roles: 'ADMIN' }
Lead to this exception:
[Symfony\Component\DependencyInjection\Exception\EnvParameterException]
A service name ("security.user.provider.concrete.in_memory_%env(ADMIN_USER
NAME)%") cannot contain dynamic values.