bobdenotter / configuration-notices

💡 A small tool to point out common pitfalls for Bolt 4 configuration settings
MIT License
9 stars 4 forks source link

The parameter "env(DATABASE_DRIVER)" must be defined. #21

Open benr77 opened 2 years ago

benr77 commented 2 years ago

On latest Bolt install, I'm now getting the following error, but only when I log in to the backend.

The parameter "env(DATABASE_DRIVER)" must be defined.

It is coming from this line in this package:

https://github.com/bobdenotter/configuration-notices/blob/2cddef518459f37a6504ac93a905879eff0afec0/src/Checks.php#L453

Surely the check should be looking for a parameter called DATABASE_DRIVER instead of a parameter called env(DATABASE_DRIVER) ??

I can fix this by setting a parameter in services.yaml

parameters:
    'env(DATABASE_DRIVER)': pdo_mysql

Thanks