Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 719 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 719 Bytes

Application config bundle

Installation

Step 1: Download the Bundle

The preferred method of installation is via Composer:

composer require snortlin/config-bundle

Step 2: Enable the 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],
];

Usage

# config/packages/config.yaml
config:
    entity_class: App\Entity\SystemConfig
    cache:
        service: 'app.cache.system_configs'
        key: 'system_configs_%s'
        ttl: 180