break;
case 'importDemodata':
$io->
comment('Import demodata'
);
$database->
importFile($dbConfig['dbname'
],
$rootDir . '/_sql/demo/latest.sql'
);
break;
case 'setupShop':
$io->
comment('Setup shop'
);
$url =
$this->
parseUrl($input);
if (!
empty($url)) { $database->
setupShop($url,
$dbConfig['dbname'
]);
} break;
default:
$io->
error(sprintf("Unknown install step (%s). Valid steps: %s\n",
$step,
implode(', ',
$this->validSteps
)));
return 1;
} }