mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Removing Shell::_loadDbConfig() and Shell::$DbConfig
They did not make sense in Shell as no other core shells even use these properties/methods.
This commit is contained in:
parent
0d522f3bd4
commit
4d199cf8a8
1 changed files with 0 additions and 25 deletions
|
@ -45,15 +45,6 @@ class Shell extends Object {
|
|||
*/
|
||||
public $interactive = true;
|
||||
|
||||
/**
|
||||
* Holds the DATABASE_CONFIG object for the app. Null if database.php could not be found,
|
||||
* or the app does not exist.
|
||||
*
|
||||
* @var DATABASE_CONFIG
|
||||
* @access public
|
||||
*/
|
||||
public $DbConfig = null;
|
||||
|
||||
/**
|
||||
* Contains command switches parsed from the command line.
|
||||
*
|
||||
|
@ -236,22 +227,6 @@ class Shell extends Object {
|
|||
$this->hr();
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads database file and constructs DATABASE_CONFIG class
|
||||
* makes $this->DbConfig available to subclasses
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
protected function _loadDbConfig() {
|
||||
if (config('database') && class_exists('DATABASE_CONFIG')) {
|
||||
$this->DbConfig =& new DATABASE_CONFIG();
|
||||
return true;
|
||||
}
|
||||
$this->err('Database config could not be loaded.');
|
||||
$this->out('Run `bake` to create the database configuration.');
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* if public $uses = true
|
||||
* Loads AppModel file and constructs AppModel class
|
||||
|
|
Loading…
Add table
Reference in a new issue