Skip to content

gupalo/config-bundle

Repository files navigation

Config Bundle

Requirements

  • PHP 8.4+
  • Symfony 7.4 or 8.0+
  • Doctrine ORM 3.x

Install

Composer

composer req gupalo/config-bundle

Check if bundle was added to config/bundles.php

Gupalo\ConfigBundle\ConfigBundle::class => ['all' => true],

Add routes - create config/routes/config.yaml

config:
    resource: "@ConfigBundle/Resources/config/routing/routing.yaml"

Override translations if needed in translations/messages.en.yaml (see Resources/translations for possible values).

Create config table in DB

php bin/console make:migration
php bin/console doctrine:migrations:migrate -n

Add to service.yaml possible values and default values

parameters:
    ...
    config.defaults:
        SOME_PARAM: 0
        OTHER_PARAM: '-2 days'

Usage

Go to /config in browser.

About

ConfigBundle for Symfony

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •