mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
b9053161f4
commit
1600322a54
2 changed files with 32 additions and 20 deletions
31
lib/Cake/Configure/ConfigReaderInterface.php
Normal file
31
lib/Cake/Configure/ConfigReaderInterface.php
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||||
|
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||||
|
*
|
||||||
|
* Licensed under The MIT License
|
||||||
|
* Redistributions of files must retain the above copyright notice.
|
||||||
|
*
|
||||||
|
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||||
|
* @link http://cakephp.org CakePHP(tm) Project
|
||||||
|
* @package Cake.Core
|
||||||
|
* @since CakePHP(tm) v 1.0.0.2363
|
||||||
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An interface for creating objects compatible with Configure::load()
|
||||||
|
*
|
||||||
|
* @package Cake.Core
|
||||||
|
*/
|
||||||
|
interface ConfigReaderInterface {
|
||||||
|
/**
|
||||||
|
* Read method is used for reading configuration information from sources.
|
||||||
|
* These sources can either be static resources like files, or dynamic ones like
|
||||||
|
* a database, or other datasource.
|
||||||
|
*
|
||||||
|
* @param string $key
|
||||||
|
* @return array An array of data to merge into the runtime configuration
|
||||||
|
*/
|
||||||
|
public function read($key);
|
||||||
|
}
|
|
@ -1,9 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Configure class
|
|
||||||
*
|
|
||||||
* PHP 5
|
|
||||||
*
|
|
||||||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||||
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||||
*
|
*
|
||||||
|
@ -18,6 +14,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
App::uses('Set', 'Utility');
|
App::uses('Set', 'Utility');
|
||||||
|
App::uses('ConfigReaderInterface', 'Configure');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configuration class. Used for managing runtime configuration information.
|
* Configuration class. Used for managing runtime configuration information.
|
||||||
|
@ -340,19 +337,3 @@ class Configure {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* An interface for creating objects compatible with Configure::load()
|
|
||||||
*
|
|
||||||
* @package Cake.Core
|
|
||||||
*/
|
|
||||||
interface ConfigReaderInterface {
|
|
||||||
/**
|
|
||||||
* Read method is used for reading configuration information from sources.
|
|
||||||
* These sources can either be static resources like files, or dynamic ones like
|
|
||||||
* a database, or other datasource.
|
|
||||||
*
|
|
||||||
* @param string $key
|
|
||||||
* @return array An array of data to merge into the runtime configuration
|
|
||||||
*/
|
|
||||||
public function read($key);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue