Mark Story 1cca695360 Remove usage of prefix increment operator. 8 years ago
..
Configure 593e849c9a Add missing warning and make dsnclassmap warning easier to grok. 8 years ago
Exception a158d437f9 Fix failing deprecated method use in ExceptionRenderer tests. 8 years ago
Retry 167ae78b87 Fix typos and grammar. 8 years ago
App.php 4efa6b60ad Fix few errors reported by phpstan level 3 8 years ago
BasePlugin.php 50c3fa4514 Remove extra slash 8 years ago
ClassLoader.php 3a6bd75832 Use HTTPS for the opensource.org URL 8 years ago
Configure.php de49841f18 Add consumeOrFail(). 8 years ago
ConsoleApplicationInterface.php b01aa36991 Split Application interface into console/web 8 years ago
ConventionsTrait.php 3a6bd75832 Use HTTPS for the opensource.org URL 8 years ago
HttpApplicationInterface.php 62dbf83442 Add __invoke method to the HttpApplicationInterface. 8 years ago
InstanceConfigTrait.php 19ee93fdc1 Indicate which class/method was actually using. 8 years ago
LICENSE.txt c61ab5ee95 Use HTTPS for the cakefoundation.org URL 8 years ago
ObjectRegistry.php fdfd0260cb Merge branch 'master' into 3.next 8 years ago
Plugin.php 5f3a304ab3 Fix errors reported by phpstan. 8 years ago
PluginApplicationInterface.php bda7b35423 Remove events hooks. 8 years ago
PluginCollection.php 1cca695360 Remove usage of prefix increment operator. 8 years ago
PluginInterface.php d02e3132a7 Remove incorrect return type. 8 years ago
README.md fe1d812c89 Update URL in *.md, *.json 9 years ago
StaticConfigTrait.php 593e849c9a Add missing warning and make dsnclassmap warning easier to grok. 8 years ago
composer.json 6f7f92c684 Update requirements in subsplits. 8 years ago
functions.php 724987b026 SCA with Php Inspections (EA Ultimate): reverts as per code review 8 years ago

README.md

Total Downloads License

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