Patrick Conroy 7e1f510d04 Adding an extra line 11 years ago
..
Configure 0b41e2c75e Code Cleanup 11 years ago
Exception 0b41e2c75e Code Cleanup 11 years ago
App.php eea4bcbb7b allow code highligthing in generated api 11 years ago
ClassLoader.php be845a3a01 Run phpcbf for PSR2 CS fixers 11 years ago
Configure.php eea4bcbb7b allow code highligthing in generated api 11 years ago
ConventionsTrait.php 7e1f510d04 Adding an extra line 11 years ago
InstanceConfigTrait.php 5872fc6b92 FIxed deletion of nested values in InstanceConfigTrait 11 years ago
ObjectRegistry.php fa1e23461a Rename deprecated attach() to on(). 11 years ago
Plugin.php f9cceb4c21 Correct use statement order 11 years ago
README.md 9633d645fd Update docblocks and readme to not use the file extension in load() and dump() 11 years ago
StaticConfigTrait.php eea4bcbb7b allow code highligthing in generated api 11 years ago
composer.json 6f6f17ff12 Adding new required versions to split packages 11 years ago
functions.php eea4bcbb7b allow code highligthing in generated api 11 years ago

README.md

CakePHP Core Classes

A set of classes used for configuration files reading and storing. This repository contains the classes that are used as glue for creating the CakePHP framework.

Usage

You can use the Configure class to store arbitrary configuration data:

use Cake\Core\Configure;
use Cake\Core\Configure\Engine\PhpConfig;

Configure::write('Company.name','Pizza, Inc.');
Configure::read('Company.name'); // Returns: 'Pizza, Inc.'

It also possible to load configuration from external files:

Configure::config('default', new PhpConfig('/path/to/config/folder'));
Configure::load('app', 'default', false);
Configure::load('other_config', 'default');

And Write the configuration back into files:

Configure::dump('my_config', 'default');

Documentation

Please make sure you check the official documentation