Skip to content

silkscreencms-contrib/config_memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Memory Configuration Driver (config_memory)

This driver contains the Memory-based configuration driver for Silkscreen CMS.

To enable this driver, place it in the drivers directory in the root of the Silkscreen CMS site or in the sites/[yoursite]/drivers directory. Memory-based configuration pools can be specified with mem:<variable_name> where variable_name is a key in the $settings['config'] array.

For example:

// Define a memory-based config object reading from mem_config.
$config_directories['active'] = 'mem:mem_config';

// Create some memory configurations.
$settings['config']['mem_config'] = array(
  'system.core' => array(
    'site_name' => 'My Site Name',
  ),
);

This will define a memory configuration object with only site_name in system.core.

This configuration tool is most often used with the Layered configuration driver.

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

Maintainers

About

Memory-based configuration storage driver.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages