agitation/setting-bundle

Installs: 184

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Type:symfony-bundle

1.5 2018-04-03 10:19 UTC

This package is not auto-updated.

Last update: 2022-07-24 12:20:49 UTC


README

Agitation is an e-commerce framework, based on Symfony2, focussed on extendability through plugged-in APIs, UIs, payment modules and other components.

AgitSettingBundle

This bundle provides a generic, pluggable settings service.

What does that mean? Applications can register their administrative settings.

The AgitSettingBundle will:

  • Store settings in the database.
  • Provide interfaces to manage them.
  • Provide validation mechanisms.

Imagine the administration area of a web-shop application. Administrators need to manage configurational settings such as available currencies or languages, their website’s name and many others. Of course that could be done through a simple config file such as Symfony’s parameters.yml.

But a more sophisticated application will want to store such values in a database. And that’s what the AgitSettingBundle does: It provides a database structure, and allows other bundles to register their settings.

Setting Plugins

Other bundles can plug their own settings in. This is done through adding the and registering the setting during a compiler pass. A plugin setting simply needs to implement the SettingInterface class and be registered with the agit.setting tag.