gupalo / config-bundle
Config Bundle
Installs: 8 111
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.4
- ext-json: *
- doctrine/orm: ^2.7|^3.0
- gupalo/browser-notifier: ^1.0
- gupalo/dateutils: ^1.4
- symfony/cache: ^5.4|^6.0
- symfony/form: ^5.4|^6.0
- symfony/notifier: ^5.4|^6.0
- symfony/translation: ^5.4|^6.0
- symfony/yaml: ^5.4|^6.0
- twig/twig: ^3.3
Requires (Dev)
- doctrine/doctrine-bundle: ^2.5
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
- symfony/security-guard: ^5.4|^6.0
README
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.