euromark 0e86766430 Correct use statements 11 years ago
..
Configure b52204b70b Harden interface for Config engine classes. 11 years ago
Exception 0e90d71732 More defaults and doc block corrections. 11 years ago
App.php a39d28ce1a Add ability to provide custom paths for locale files. 11 years ago
ClassLoader.php b08711064a Cleanup - Unused local variables 11 years ago
Configure.php 8f111948ce Update incorrect book links. 11 years ago
ConventionsTrait.php daf73ef7c6 Make method name better represent what it is going to do. 11 years ago
InstanceConfigTrait.php 133c34445c Fix some docblock type 11 years ago
ObjectRegistry.php 82b2058d93 Add additional test coverage. 11 years ago
Plugin.php 0e86766430 Correct use statements 11 years ago
README.md cf147788c8 Adding a Readme and composer.json to the Core namespace 11 years ago
StaticConfigTrait.php f376d32966 Add typehint. 11 years ago
composer.json cf147788c8 Adding a Readme and composer.json to the Core namespace 11 years ago
functions.php 25414d8623 Correct return types. 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