HighSpeaker/vendor/cakephp/core
2024-02-05 00:00:23 +08:00
..
Configure Composer Version Change 2024-02-05 00:00:23 +08:00
Exception Composer Version Change 2024-02-05 00:00:23 +08:00
Retry Composer Version Change 2024-02-05 00:00:23 +08:00
TestSuite Composer Version Change 2024-02-05 00:00:23 +08:00
App.php Composer Version Change 2024-02-05 00:00:23 +08:00
BasePlugin.php Composer Version Change 2024-02-05 00:00:23 +08:00
ClassLoader.php Composer Version Change 2024-02-05 00:00:23 +08:00
composer.json Composer Version Change 2024-02-05 00:00:23 +08:00
Configure.php Composer Version Change 2024-02-05 00:00:23 +08:00
ConsoleApplicationInterface.php Composer Version Change 2024-02-05 00:00:23 +08:00
Container.php Composer Version Change 2024-02-05 00:00:23 +08:00
ContainerApplicationInterface.php Composer Version Change 2024-02-05 00:00:23 +08:00
ContainerInterface.php Composer Version Change 2024-02-05 00:00:23 +08:00
ConventionsTrait.php Composer Version Change 2024-02-05 00:00:23 +08:00
functions_global.php Composer Version Change 2024-02-05 00:00:23 +08:00
functions.php Composer Version Change 2024-02-05 00:00:23 +08:00
HttpApplicationInterface.php Composer Version Change 2024-02-05 00:00:23 +08:00
InstanceConfigTrait.php Composer Version Change 2024-02-05 00:00:23 +08:00
LICENSE.txt Composer Version Change 2024-02-05 00:00:23 +08:00
ObjectRegistry.php Composer Version Change 2024-02-05 00:00:23 +08:00
Plugin.php Composer Version Change 2024-02-05 00:00:23 +08:00
PluginApplicationInterface.php Composer Version Change 2024-02-05 00:00:23 +08:00
PluginCollection.php Composer Version Change 2024-02-05 00:00:23 +08:00
PluginInterface.php Composer Version Change 2024-02-05 00:00:23 +08:00
README.md Composer Version Change 2024-02-05 00:00:23 +08:00
ServiceConfig.php Composer Version Change 2024-02-05 00:00:23 +08:00
ServiceProvider.php Composer Version Change 2024-02-05 00:00:23 +08:00
StaticConfigTrait.php Composer Version Change 2024-02-05 00:00:23 +08:00

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