yaroslavche / config-ui-bundle
Symfony 4 Configuration UI bundle
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.2
- ext-json: *
- symfony/config: ^4.3
- symfony/console: ^4.3
- symfony/dependency-injection: ^4.3
- symfony/framework-bundle: ^4.3
- symfony/http-foundation: ^4.3
- symfony/http-kernel: ^4.3
- symfony/property-access: ^4.3
- symfony/serializer: ^4.3
Requires (Dev)
- infection/infection: ^0.13.4
- phpstan/phpstan: ^0.11.12
- phpunit/phpunit: 8.2.4
- roave/backward-compatibility-check: ^3.0
- squizlabs/php_codesniffer: ^3.4
- symfony/debug-pack: ^1.0
- symfony/phpunit-bridge: ^4.3
- thecodingmachine/phpstan-strict-rules: ^0.11.2
This package is auto-updated.
Last update: 2024-10-15 22:00:41 UTC
README
Install
$ composer require yaroslavche/config-ui-bundle
Add routes:
# config/routes/yaroslavche_config_ui.yaml yaroslavche_config_ui: resource: "@YaroslavcheConfigUIBundle/Resources/config/routes.xml" prefix: '/config'
And config*:
# config/packages/yaroslavche_config_ui.yaml yaroslavche_config_ui: definition_fields: name: true normalization: false validation: false defaultValue: true default: true required: true deprecationMessage: true merge: false allowEmptyValue: true nullEquivalent: false trueEquivalent: false falseEquivalent: false pathSeparator: false parent: false attributes: true performDeepMerging: false ignoreExtraKeys: false removeExtraKeys: false children: true prototype: true atLeastOne: true allowNewKeys: false key: false removeKeyItem: false addDefaults: false addDefaultChildren: false nodeBuilder: false normalizeKeys: false min: false max: false values: false type: true
*
I suppose it will be default in future. definition_fields
- private properties of NodeDefinition
(depends on NodeDefinition class). Boolean: include in definitions array or not.
Look at:
https://localhost:8000/config/bundles
const response = { "status": "success", "bundles": { // ... } }
https://localhost:8000/config/bundle/FrameworkBundle
const response = { "status": "success", "bundle": { "name": "FrameworkBundle", "namespace": "Symfony\\Bundle\\FrameworkBundle", "path": "\/vendor\/symfony\/framework-bundle", "definitions": { "secret": { "name": "secret", "defaultValue": null, "default": false, "required": false, "deprecationMessage": null, "allowEmptyValue": true, "attributes": [], "type": "scalar" }, // ... }, // ... } }
Dev tools
$ composer cscheck $ composer csfix $ composer phpstan $ composer phpunit $ composer infection $ composer clover $ composer bccheck