geek 9f0c49094f s 5 년 전
..
Configure 9f0c49094f s 5 년 전
Exception 9f0c49094f s 5 년 전
Retry 9f0c49094f s 5 년 전
App.php 9f0c49094f s 5 년 전
BasePlugin.php 9f0c49094f s 5 년 전
ClassLoader.php 9f0c49094f s 5 년 전
Configure.php 9f0c49094f s 5 년 전
ConsoleApplicationInterface.php 9f0c49094f s 5 년 전
ConventionsTrait.php 9f0c49094f s 5 년 전
HttpApplicationInterface.php 9f0c49094f s 5 년 전
InstanceConfigTrait.php 9f0c49094f s 5 년 전
LICENSE.txt 9f0c49094f s 5 년 전
ObjectRegistry.php 9f0c49094f s 5 년 전
Plugin.php 9f0c49094f s 5 년 전
PluginApplicationInterface.php 9f0c49094f s 5 년 전
PluginCollection.php 9f0c49094f s 5 년 전
PluginInterface.php 9f0c49094f s 5 년 전
README.md 9f0c49094f s 5 년 전
StaticConfigTrait.php 9f0c49094f s 5 년 전
composer.json 9f0c49094f s 5 년 전
functions.php 9f0c49094f s 5 년 전

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