symfony API

sfDefineEnvironmentConfigHandler Class

« Back to API menu

action

addon

cache

config

controller

countable

database

debug

exception

filter

generator

helper

i18n

log

request

response

storage

test

user

util

validator

view

You are currently browsing the symfony documentation for the 1.0 version. Switch to:

Inheritence

sfLoggingConfigHandler  <  sfDefineEnvironmentConfigHandler  <  sfYamlConfigHandler < sfConfigHandler

Method Summary

  • string execute($configFiles)
    Executes this configuration handler.
  • string fixCategoryName($category, $prefix)
    Fixes the category name.
  • getValues($prefix, $category, $keys, 3)
    Gets values from the configuration array.
  • fixCategoryValue($category, $key, $value, 3)
    Fixes the category name and replaces constants in the value.
  • mergeEnvironment($config, 1)
    Merges default, all and current environment configurations.

Methods inherited from sfYamlConfigHandler

parseYaml , parseYamls , getConfigValue , mergeConfigValue

Methods inherited from sfConfigHandler

execute , initialize , replaceConstants , replacePath , getParameterHolder

Method Details

  • (string) execute ($configFiles)

    $configFiles An absolute filesystem path to a configuration file

    Executes this configuration handler.

    returns Data to be written to a cache file

    throws sfParseException If a requested configuration file is improperly formatted

  • (string) fixCategoryName ($category, $prefix)

    $category The category name
    $prefix The prefix

    Fixes the category name.

    returns The fixed category name

  • getValues ($prefix, $category, $keys, 3)

    $prefix The prefix name
    $category The category name
    $keys The key/value array
    3 The new key/value array

    Gets values from the configuration array.

  • fixCategoryValue ($category, $key, $value, 3)

    $category The category name
    $key The key name
    $value The value
    3 Return the new key and value

    Fixes the category name and replaces constants in the value.

  • mergeEnvironment ($config, 1)

    $config The main configuratino array
    1 The merged configuration

    Merges default, all and current environment configurations.