Mark Story 7f5681470f Merge the EventApplication and PluginApplication interfaces. 8 年之前
..
Configure 593e849c9a Add missing warning and make dsnclassmap warning easier to grok. 8 年之前
Exception a158d437f9 Fix failing deprecated method use in ExceptionRenderer tests. 8 年之前
Retry 167ae78b87 Fix typos and grammar. 8 年之前
App.php 4efa6b60ad Fix few errors reported by phpstan level 3 8 年之前
BasePlugin.php 9740c18b92 Require files more than once. 8 年之前
ClassLoader.php 3a6bd75832 Use HTTPS for the opensource.org URL 8 年之前
Configure.php 08b6be4b8d Updated PHPDoc for Configure::consume 8 年之前
ConsoleApplicationInterface.php b01aa36991 Split Application interface into console/web 8 年之前
ConventionsTrait.php 3a6bd75832 Use HTTPS for the opensource.org URL 8 年之前
HttpApplicationInterface.php 62dbf83442 Add __invoke method to the HttpApplicationInterface. 8 年之前
InstanceConfigTrait.php 19ee93fdc1 Indicate which class/method was actually using. 8 年之前
LICENSE.txt c61ab5ee95 Use HTTPS for the cakefoundation.org URL 8 年之前
ObjectRegistry.php fdfd0260cb Merge branch 'master' into 3.next 8 年之前
Plugin.php a3522fbcde Rename PluginApp -> BasePlugin 8 年之前
PluginApplicationInterface.php 7f5681470f Merge the EventApplication and PluginApplication interfaces. 8 年之前
PluginCollection.php 978a903267 Add missing methods to PluginInterface and make it narrower 8 年之前
PluginInterface.php 6b4b114a33 Make plugins need to return the event manager 8 年之前
README.md fe1d812c89 Update URL in *.md, *.json 9 年之前
StaticConfigTrait.php 593e849c9a Add missing warning and make dsnclassmap warning easier to grok. 8 年之前
composer.json 7f5681470f Merge the EventApplication and PluginApplication interfaces. 8 年之前
functions.php 477e7949ec change stackFrame to 1 8 年之前

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