Download the PHP package hexanet/settings-bundle without Composer
On this page you can find all versions of the php package hexanet/settings-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package settings-bundle
SettingsBundle
Settings system.
Installation
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
Database
You have to create the table in the database, to do this we generate a migration:
Usage
Define the settings
A schema allows you to initialize the settings by giving them a default value.
First you need to create a class that extends from the SchemaInterface
interface:
Then declare it as service with the hexanet.settings_schema
tag :
The bundle provide autoconfiguration for class that implement
SchemaInterface
.
After that we can use the php bin/console hexanet:settings:setup
command to generate all the settings, if a setting already exists the command ignores it.
Examples
Production
For production it's possible to activate the cache by modifying the config of the bundle:
The Symfony cache app
is used (@cache.app)
Credits
Developed by Hexanet.
License
SettingsBundle is licensed under the MIT license.
All versions of settings-bundle with dependencies
symfony/dependency-injection Version ~3.4|~4.0
symfony/http-kernel Version ~3.4|~4.0
symfony/config Version ~3.4|~4.0
symfony/cache Version ~3.4|~4.0
doctrine/orm Version ~2.2,>=2.2.3