snortlin/config-bundle

Symfony bundle for application configuration values

Installs: 22

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-main 2024-03-26 12:25 UTC

This package is auto-updated.

Last update: 2024-04-26 12:42:40 UTC


README

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