symfony API

sfConfigCache Class

« Back to API menu

1.0 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.0 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.

sfConfigCache allows you to customize the format of a configuration file to

Method Summary

  • callHandler(, , )
    Loads a configuration handler.
  • string checkConfig()
    Checks to see if a configuration file has been modified and if so
  • clear()
    Clears all configuration cache files.
  • string getCacheName()
    Converts a normal filename into a cache filename.
  • sfConfigCache getInstance()
    Retrieves the singleton instance of this class.
  • import(, )
    Imports a configuration file.
  • loadConfigHandlers()
    Loads all configuration application and module level handlers.
  • writeCacheFile(, , )
    Writes a cache file.

Method Details

  • callHandler (, , ) Browse code

    Loads a configuration handler.

    throws sfConfigurationException If a requested configuration file does not have an associated configuration handler

  • (string) checkConfig () Browse code

    Checks to see if a configuration file has been modified and if so

    recompile the cache file associated with it.

    The recompilation only occurs in a non debug environment.

    If the configuration file path is relative, symfony will look in directories
    defined in the sfLoader::getConfigPaths() method.

    returns An absolute filesystem path to the cache filename associated with this specified configuration file

    throws sfConfigurationException If a requested configuration file does not exist

  • clear () Browse code

    Clears all configuration cache files.

  • (string) getCacheName () Browse code

    Converts a normal filename into a cache filename.

    returns An absolute filesystem path to a cache filename

  • (sfConfigCache) getInstance () Browse code

    Retrieves the singleton instance of this class.

    returns A sfConfigCache instance

  • import (, ) Browse code

    Imports a configuration file.

  • loadConfigHandlers () Browse code

    Loads all configuration application and module level handlers.

    throws sfConfigurationException If a configuration related error occurs.

  • writeCacheFile (, , ) Browse code

    Writes a cache file.

    throws sfCacheException If the cache file cannot be written

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.