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
Requires
- php: ^8.3
- symfony/cache-contracts: ^3
- symfony/dependency-injection: ^6.4|^7.0
- symfony/serializer: ^6.4|^7.0
- symfony/validator: ^6.4|^7.0
Suggests
- symfony/orm-pack: For saving configurations to the database.
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