lexxpavlov / LexxpavlovSettingsBundle

This bundle helps you to manage your settings in Symfony2/3 project
MIT License
10 stars 10 forks source link

Update CacheFactory to support nullable cache_provider #13

Closed PierrickMartos closed 3 years ago

PierrickMartos commented 3 years ago

Actually, if lexxpavlov_settings.cache_provider is null it blow up with this error: Argument 1 passed to Symfony\Component\DependencyInjection\Container::make() must be of the type string, null given, called in /var/www/html/vendor/symfony/dependency-injection/Container.php on line 231

This commit fix this by checking if we have a service name before attempting to register it.

lexxpavlov commented 3 years ago

Thanks a lot for your help!