hacfi/parameter-update-bundle

Symfony Parameter Update Bundle

dev-master 2015-04-21 12:32 UTC

This package is not auto-updated.

Last update: 2024-04-27 15:31:24 UTC


README

Install

composer require "hacfi/parameter-update-bundle":"dev-master"

Configuration

hacfi_parameter_update:
    parameters_file: "%kernel.root_dir%/config/parameters.yml"
    values:
        some_parameter1:
            service: some_service_name:method1
            parameters_file: "%kernel.root_dir%/config/local.yml"
            parameters_key: parameters
        some_parameter2:
            service: [other_service_name, method2]
            property_path: "[nested][some_bucketname2]"
        some_parameter3:
            service: [[some_service_name, test], ["argument 1", "argument 2"]]

Usage

Configure the values which should be generated via a service. Process them via

app/console hacfi:update_parameter

or individually

app/console hacfi:update_parameter some_parameter1