mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
e56a2cdb2b
commit
0e47c98c91
1 changed files with 3 additions and 3 deletions
|
@ -51,6 +51,9 @@ class BakeShell extends Shell {
|
|||
*/
|
||||
public function startup() {
|
||||
parent::startup();
|
||||
Configure::write('debug', 2);
|
||||
Configure::write('Cache.disable', 1);
|
||||
|
||||
$task = Inflector::classify($this->command);
|
||||
if (isset($this->{$task}) && !in_array($task, array('Project', 'DbConfig'))) {
|
||||
if (isset($this->params['connection'])) {
|
||||
|
@ -65,9 +68,6 @@ class BakeShell extends Shell {
|
|||
* @return mixed
|
||||
*/
|
||||
public function main() {
|
||||
Configure::write('debug', 2);
|
||||
Configure::write('Cache.disable', 1);
|
||||
|
||||
if (!is_dir($this->DbConfig->path)) {
|
||||
$path = $this->Project->execute();
|
||||
if (!empty($path)) {
|
||||
|
|
Loading…
Reference in a new issue