Download the PHP package imatic/config-bundle without Composer
On this page you can find all versions of the php package imatic/config-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imatic/config-bundle
More information about imatic/config-bundle
Files in imatic/config-bundle
Package config-bundle
Short Description Imatic Config Bundle
License proprietary
Homepage https://www.imatic.cz
Informations about the package config-bundle
ImaticConfigBundle
ImaticConfigBundle provides an easy way to manage configuration stored in the database.
Installation
Enable the bundle
If you don't use Symfony Flex, register the bundle manually
Create config table
If table is not defined in default schema, you need to specify your entity in bundle configuration.
Usage
Configuration is defined in class extending ProviderInterface.
Configuration must be registered as services and tagged with the imatic_config.provider
tag. If you're using the default Symfony services.yaml configuration, this is already done for you, thanks to autoconfiguration.
You can organize configuration in multiple files, with different aliases. Every configuration value is prefixed with alias name. Default alias name is config
.
Reading configuration
To read config value get a ConfigManager instance by type-hinting ConfigManagerInterface.
Usage in Twig templates
The Twig extension in this bundle supports reading configuration directly in your template.
Manage configuration
All you need to do is register bundle routing configuration and management will be available under imatic_config_config
route.
It excepts that your project base template is base.html.twig
. If you use another base template you need to specify it in bundle configuration.
All versions of config-bundle with dependencies
ext-json Version *
doctrine/doctrine-bundle Version ^2.4
doctrine/orm Version ^2.7
symfony/form Version 4.4|^5.3
symfony/framework-bundle Version ^4.4|^5.3
symfony/translation Version ^4.4|^5.3
symfony/twig-bundle Version ^4.4|^5.3
symfony/validator Version ^4.4|^5.3