brazilianfriendsofsymfony/settings-management-bundle

Symfony BFOSSettingsManagementBundle

v0.1.4 2013-03-02 06:46 UTC

This package is not auto-updated.

Last update: 2024-12-21 14:02:20 UTC


README

Symfony2 bundle to easily manage your application settings.

Requirements

- jQuery
- RequireJS
- ckEditor

Installing

Install from composer for symfony 2.1

Add BFOSSettingsManagementBundle in your composer.json:

{
    "require": {
        "brazilianfriendsofsymfony/settings-management-bundle": "dev-master"
    }
}

Register BFOSSettingsManagementBundle into your application kernel

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...,
       new BFOS\SettingsManagementBundle\BFOSSettingsManagementBundle()
        // ...,
    );

    //..
    return $bundles;
}

** Import the routes in app/config/routing.yml **

bfos_settings_management:
    resource: "@BFOSSettingsManagementBundle/Resources/config/routing.yml"

Configuration

bfos_settings_management:
    security:
        admin_role: ROLE_ADMIN
        super_admin_role: ROLE_SUPER_ADMIN