Commit 921cf91a authored by xjm's avatar xjm

Issue #2580569 by anavarre, Davinder.Snehi, Schnitzel, jhodgdon: Update...

Issue #2580569 by anavarre, Davinder.Snehi, Schnitzel, jhodgdon: Update documentation that mentions active CMI directory. active was removed
parent d6af6fc9
...@@ -210,7 +210,6 @@ function drupal_get_database_types() { ...@@ -210,7 +210,6 @@ function drupal_get_database_types() {
* @endcode * @endcode
* gets dumped as: * gets dumped as:
* @code * @code
* $config_directories['active'] = 'config_hash/active';
* $config_directories['sync'] = 'config_hash/sync' * $config_directories['sync'] = 'config_hash/sync'
* @endcode * @endcode
*/ */
...@@ -524,8 +523,7 @@ function drupal_install_config_directories() { ...@@ -524,8 +523,7 @@ function drupal_install_config_directories() {
* Ensures that the config directory exists and is writable, or can be made so. * Ensures that the config directory exists and is writable, or can be made so.
* *
* @param string $type * @param string $type
* Type of config directory to return. Drupal core provides 'active' and * Type of config directory to return. Drupal core provides 'sync'.
* 'sync'.
* *
* @return bool * @return bool
* TRUE if the config directory exists and is writable. * TRUE if the config directory exists and is writable.
......
...@@ -223,22 +223,24 @@ ...@@ -223,22 +223,24 @@
* Location of the site configuration files. * Location of the site configuration files.
* *
* The $config_directories array specifies the location of file system * The $config_directories array specifies the location of file system
* directories used for configuration data. On install, "active" and "sync" * directories used for configuration data. On install, the "sync" directory is
* directories are created for configuration. The sync directory is used for * created. This is used for configuration imports. The "active" directory is
* configuration imports; the active directory is not used by default, since the * not created by default since the default storage for active configuration is
* default storage for active configuration is the database rather than the file * the database rather than the file system. (This can be changed. See "Active
* system (this can be changed; see "Active configuration settings" below). * configuration settings" below).
* *
* The default location for the active and sync directories is inside a * The default location for the "sync" directory is inside a randomly-named
* randomly-named directory in the public files path; this setting allows you to * directory in the public files path. The setting below allows you to override
* override these locations. If you use files for the active configuration, you * the "sync" location.
* can enhance security by putting the active configuration outside your *
* document root. * If you use files for the "active" configuration, you can tell the
* Configuration system where this directory is located by adding an entry with
* array key CONFIG_ACTIVE_DIRECTORY.
* *
* Example: * Example:
* @code * @code
* $config_directories = array( * $config_directories = array(
* CONFIG_SYNC_DIRECTORY => '/another/directory/outside/webroot', * CONFIG_SYNC_DIRECTORY => '/directory/outside/webroot',
* ); * );
* @endcode * @endcode
*/ */
...@@ -580,6 +582,10 @@ ...@@ -580,6 +582,10 @@
* By default, the active configuration is stored in the database in the * By default, the active configuration is stored in the database in the
* {config} table. To use a different storage mechanism for the active * {config} table. To use a different storage mechanism for the active
* configuration, do the following prior to installing: * configuration, do the following prior to installing:
* - Create an "active" directory and declare its path in $config_directories
* as explained under the 'Location of the site configuration files' section
* above in this file. To enhance security, you can declare a path that is
* outside your document root.
* - Override the 'bootstrap_config_storage' setting here. It must be set to a * - Override the 'bootstrap_config_storage' setting here. It must be set to a
* callable that returns an object that implements * callable that returns an object that implements
* \Drupal\Core\Config\StorageInterface. * \Drupal\Core\Config\StorageInterface.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment