The preferred method of installation is via Composer:
composer require snortlin/config-bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
// config/bundles.php
return [
// ...
Snortlin\Bundle\ConfigBundle\ConfigBundle::class => ['all' => true],
];
# config/packages/config.yaml
config:
entity_class: App\Entity\SystemConfig
cache:
service: 'app.cache.system_configs'
key: 'system_configs_%s'
ttl: 180