Skip to content

Commit 4d199cf

Browse files
committed
Removing Shell::_loadDbConfig() and Shell::$DbConfig
They did not make sense in Shell as no other core shells even use these properties/methods.
1 parent 0d522f3 commit 4d199cf

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

cake/console/libs/shell.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@ class Shell extends Object {
4545
*/
4646
public $interactive = true;
4747

48-
/**
49-
* Holds the DATABASE_CONFIG object for the app. Null if database.php could not be found,
50-
* or the app does not exist.
51-
*
52-
* @var DATABASE_CONFIG
53-
* @access public
54-
*/
55-
public $DbConfig = null;
56-
5748
/**
5849
* Contains command switches parsed from the command line.
5950
*
@@ -236,22 +227,6 @@ protected function _welcome() {
236227
$this->hr();
237228
}
238229

239-
/**
240-
* Loads database file and constructs DATABASE_CONFIG class
241-
* makes $this->DbConfig available to subclasses
242-
*
243-
* @return bool
244-
*/
245-
protected function _loadDbConfig() {
246-
if (config('database') && class_exists('DATABASE_CONFIG')) {
247-
$this->DbConfig =& new DATABASE_CONFIG();
248-
return true;
249-
}
250-
$this->err('Database config could not be loaded.');
251-
$this->out('Run `bake` to create the database configuration.');
252-
return false;
253-
}
254-
255230
/**
256231
* if public $uses = true
257232
* Loads AppModel file and constructs AppModel class

0 commit comments

Comments
 (0)