symfony API

sfApplicationConfiguration Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.1 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.1 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfConfiguration represents a configuration for a symfony application.

Method Summary

  • activate()
  • void checkLock()
    Check lock files to see if we're not in a cache cleaning process.
  • void checkSymfonyVersion()
    Checks symfony version and clears cache if recent update.
  • configure()
    Configures the current configuration.
  • string getApplication()
    Returns the application name.
  • sfConfigCache getConfigCache()
    Returns a configuration cache object for the current configuration.
  • array getConfigPaths($configPath)
    Gets the configuration file paths for a given relative configuration path.
  • array getControllerDirs($moduleName)
    Gets directories where controller classes are stored for a given module.
  • string getDecoratorDir($template)
    Gets the decorator directory for a given template.
  • array getDecoratorDirs()
    Gets the decorator directories.
  • string getEnvironment()
    Returns the environment name.
  • array getI18NDirs($moduleName)
    Gets the i18n directories to use for a given module.
  • array getI18NGlobalDirs()
    Gets the i18n directories to use globally.
  • string getTemplateDir($moduleName, $templateFile)
    Gets the template directory to use for a given module and template file.
  • array getTemplateDirs($moduleName)
    Gets directories where template files are stored for a given module.
  • string getTemplatePath($moduleName, $templateFile)
    Gets the template to use for a given module and template file.
  • initConfiguration()
    @see sfProjectConfiguration
  • initialize()
    Initialized the current configuration.
  • Boolean isDebug()
    Returns true if this configuration has debug enabled.
  • void loadPluginConfig()
    Loads config.php files from plugins
  • setAppDir($appDir)
    Sets the app directory.
  • setCacheDir()
    @see sfProjectConfiguration
  • setRootDir($rootDir)
    Sets the project root directory.
  • __construct($environment, $debug, $rootDir, $dispatcher)
    Constructor.

Method Details

  • activate () Browse code

  • (void) checkLock () Browse code

    Check lock files to see if we're not in a cache cleaning process.

  • (void) checkSymfonyVersion () Browse code

    Checks symfony version and clears cache if recent update.

  • configure () Browse code

    Configures the current configuration.


    Override this method if you want to customize your application configuration.

  • (string) getApplication () Browse code

    Returns the application name.

    returns The application name

  • (sfConfigCache) getConfigCache () Browse code

    Returns a configuration cache object for the current configuration.

    returns A sfConfigCache instance

  • (array) getConfigPaths ($configPath) Browse code

    $configPath The configuration path

    Gets the configuration file paths for a given relative configuration path.

    returns An array of paths

  • (array) getControllerDirs ($moduleName) Browse code

    $moduleName The module name

    Gets directories where controller classes are stored for a given module.

    returns An array of directories

  • (string) getDecoratorDir ($template) Browse code

    $template The template file

    Gets the decorator directory for a given template.

    returns A template directory

  • (array) getDecoratorDirs () Browse code

    Gets the decorator directories.

    returns An array of the decorator directories

  • (string) getEnvironment () Browse code

    Returns the environment name.

    returns The environment name

  • (array) getI18NDirs ($moduleName) Browse code

    $moduleName The module name

    Gets the i18n directories to use for a given module.

    returns An array of i18n directories

  • (array) getI18NGlobalDirs () Browse code

    Gets the i18n directories to use globally.

    returns An array of i18n directories

  • (string) getTemplateDir ($moduleName, $templateFile) Browse code

    $moduleName The module name
    $templateFile The template file

    Gets the template directory to use for a given module and template file.

    returns A template directory

  • (array) getTemplateDirs ($moduleName) Browse code

    $moduleName The module name

    Gets directories where template files are stored for a given module.

    returns An array of directories

  • (string) getTemplatePath ($moduleName, $templateFile) Browse code

    $moduleName The module name
    $templateFile The template file

    Gets the template to use for a given module and template file.

    returns A template path

  • initConfiguration () Browse code

    @see sfProjectConfiguration

  • initialize () Browse code

    Initialized the current configuration.


    Override this method if you want to customize your application initialization.

  • (Boolean) isDebug () Browse code

    Returns true if this configuration has debug enabled.

    returns true if the configuration has debug enabled, false otherwise

  • (void) loadPluginConfig () Browse code

    Loads config.php files from plugins

  • setAppDir ($appDir) Browse code

    $appDir The absolute path to the app dir.

    Sets the app directory.

  • setCacheDir () Browse code

    @see sfProjectConfiguration

  • setRootDir ($rootDir) Browse code

    $rootDir The project root directory

    Sets the project root directory.

  • __construct ($environment, $debug, $rootDir, $dispatcher) Browse code

    $environment The environment name
    $debug true to enable debug mode
    $rootDir The project root directory
    $dispatcher An event dispatcher

    Constructor.