Mark Story 9258019c65 Merge branch 'master' into 3.next 7 years ago
..
Configure cb608f1964 Micro-opt and return type fix. 7 years ago
Exception a158d437f9 Fix failing deprecated method use in ExceptionRenderer tests. 8 years ago
Retry 86194c5d22 Fix all phpDocs @throws FQN 8 years ago
App.php 4efa6b60ad Fix few errors reported by phpstan level 3 8 years ago
BasePlugin.php 66586166f2 Remove uneeded "use" statements. 7 years ago
ClassLoader.php 3a6bd75832 Use HTTPS for the opensource.org URL 8 years ago
Configure.php 02ceac049b Backport isConfigured 7 years ago
ConsoleApplicationInterface.php b01aa36991 Split Application interface into console/web 8 years ago
ConventionsTrait.php 08c667fc9f Backport Plugin::isLoaded() 7 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 a4a8b5c222 Include missing exception 7 years ago
Plugin.php 6f5063344f Merge branch '3.next' into dep-plugin-load 7 years ago
PluginApplicationInterface.php 93f73c5456 Dynamically create plugin instances 7 years ago
PluginCollection.php cd9f495fb6 Update phpstan to v0.10. 7 years ago
PluginInterface.php 66586166f2 Remove uneeded "use" statements. 7 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 b991c2c70f Php Inspections (EA Ultimate): minor code tweaks 7 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