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

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