Mark Story 2edc7ad9fc Relax types on StaticConfigTrait::setConfig() 2 年之前
..
Configure c63af43e9f Merge remote-tracking branch 'origin/4.next' into 5.x 3 年之前
Exception 6fd7a491ae Consolidate code fencing in exception messages. (#16956) 3 年之前
Retry a426d56bdc Change CommandRetry action parameter to a closure 3 年之前
TestSuite 220784c0ee Use EventInterface::setResult() instead of returning value. 2 年之前
App.php bf3a033955 Use match(). 3 年之前
BasePlugin.php 1b70151d08 Fix up TypeError cases found by PHPStan level 7/8 3 年之前
Configure.php e9fcff7407 Merge branch '4.next' into 5.x 3 年之前
ConsoleApplicationInterface.php cf569b9c15 Fix CS error. 7 年之前
Container.php 7951860e65 Remove "experimental" tag from DIC related classes. 4 年之前
ContainerApplicationInterface.php 7951860e65 Remove "experimental" tag from DIC related classes. 4 年之前
ContainerInterface.php b9a97ddf1f add delegate to ContainerInterface 3 年之前
ConventionsTrait.php 998871bddc Use lowercased type names for paths to non source/class files. 6 年之前
HttpApplicationInterface.php cbb4a2eb19 Fix up variable 6 年之前
InstanceConfigTrait.php 8c779ee17f Avoid unnecessary (re)assignments. 3 年之前
LICENSE.txt c1c20661ad Add missing LICENSE file to console package 5 年之前
ObjectRegistry.php 6fd7a491ae Consolidate code fencing in exception messages. (#16956) 3 年之前
Plugin.php f26eae78c7 Use null coalescing assignment. 3 年之前
PluginApplicationInterface.php 2366e8423c add use phpdoc to EventDispatcherTrait usages 3 年之前
PluginCollection.php e9fcff7407 Merge branch '4.next' into 5.x 3 年之前
PluginInterface.php 4dbef91720 Replace `@method` annotations with actual interface methods. 4 年之前
README.md cfe283cfeb Improve wording, grammar, punctuation etc. 5 年之前
ServiceConfig.php 46617e1d75 Merge branch '4.next' into 5.x 4 年之前
ServiceProvider.php cd07b90728 Use assert() for asserting valid class types. 3 年之前
StaticConfigTrait.php 2edc7ad9fc Relax types on StaticConfigTrait::setConfig() 2 年之前
composer.json e07d2e60ef Update composer configs post 4.x merge. 3 年之前
functions.php 9209f5a876 wrap namespaced core functions in function_exists 2 年之前
functions_global.php 72ff5fb9aa Merge branch '4.next' into 5.x 3 年之前

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