Download the PHP package cpoint-eu/settings-bundle without Composer
On this page you can find all versions of the php package cpoint-eu/settings-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cpoint-eu/settings-bundle
More information about cpoint-eu/settings-bundle
Files in cpoint-eu/settings-bundle
Package settings-bundle
Short Description Simple bundle that implements application settings doctrine entity, provider and factory for Symfony project.
License MIT
Informations about the package settings-bundle
Information
CreativePointSettingsBundle manages configurations settings in the database and make them available via DTO objects in your Symfony application.
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
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:
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
Configuration
The bundle configuration is optional and in most cases does not need to be changed in any way.
Usage
You must create a DTO object that implements CreativePoint\SettingsBundle\Model\SettingsDtoInterface
.
Save settings data
Load settings data
Override settings entity
The settings entity can be overridden if necessary. The newly created entity must extend the base Settings entity
CreativePoint\SettingsBundle\Entity\Settings
or implement CreativePoint\SettingsBundle\Entity\SettingsInterface
.
Then you need to modify the bundle configuration:
You can replace SettingsRepository in the same way. Your new repository must extend
CreativePoint\SettingsBundle\Repository\SettingsRepository
or implement
CreativePoint\SettingsBundle\Repository\SettingsRepositoryInterface
. And make the bundle aware of it:
All versions of settings-bundle with dependencies
symfony/framework-bundle Version ^7.0
symfony/serializer Version ^7.0
symfony/orm-pack Version ^2.4