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:
mark_story 2010-10-09 20:53:10 -04:00
parent 0d522f3bd4
commit 4d199cf8a8

View file

@ -45,15 +45,6 @@ class Shell extends Object {
*/ */
public $interactive = true; 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. * Contains command switches parsed from the command line.
* *
@ -236,22 +227,6 @@ class Shell extends Object {
$this->hr(); $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 * if public $uses = true
* Loads AppModel file and constructs AppModel class * Loads AppModel file and constructs AppModel class