Mark Story a44fb76201 Consolidate duplicated code and fix a few issues. 11 years ago
..
Configure 58784a5276 fix CS 11 years ago
Exception ef8cedff9a Core\Error -> Core\Exception 11 years ago
App.php d89e8aabea Cleanup use statements 11 years ago
ClassLoader.php d52ae87485 Fix license docblocks for phpdoc format 12 years ago
Configure.php ef8cedff9a Core\Error -> Core\Exception 11 years ago
ConventionsTrait.php 8303b8348f Fix additional, pointless and sometimes harmful inflections. 11 years ago
InstanceConfigTrait.php ef8cedff9a Core\Error -> Core\Exception 11 years ago
ObjectRegistry.php a44fb76201 Consolidate duplicated code and fix a few issues. 11 years ago
Plugin.php e45abe3449 Fix CS errors and use correct exceptions 11 years ago
README.md cf147788c8 Adding a Readme and composer.json to the Core namespace 11 years ago
StaticConfigTrait.php a44fb76201 Consolidate duplicated code and fix a few issues. 11 years ago
composer.json cf147788c8 Adding a Readme and composer.json to the Core namespace 11 years ago
functions.php 6025893871 Removing HTTP_BASE env check 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.php', 'default', false);
Configure::load('other_config.php', 'default');

And Write the configuration back into files:

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

Documentation

Please make sure you check the official documentation