mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-05-23 05:20:06 +08:00
modified 按照脚本添加必要插件支持
This commit is contained in:
parent
54c77736e5
commit
390938ca79
@ -37,6 +37,22 @@ class Install extends Command {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!is_writable($tplPath)) {
|
||||||
|
$output->highlight($tplPath . '缺少写权限!');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$tempPath = Env::get('runtime_path');
|
||||||
|
if (!is_writable($tempPath)) {
|
||||||
|
$output->highlight($tempPath . '缺少写权限!');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (extension_loaded('redis')) {
|
||||||
|
$output->highlight('缺少Redis扩展!');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
if ($input->hasOption('db')) {
|
if ($input->hasOption('db')) {
|
||||||
try {
|
try {
|
||||||
$options = $options = $this->parseDsnConfig($input->getOption('db'));
|
$options = $options = $this->parseDsnConfig($input->getOption('db'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user