mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-25 01:25:34 +08:00
fix init command
This commit is contained in:
@@ -38,7 +38,7 @@ class InitCommand extends Command
|
|||||||
if (LOAD_MODE === 1) { // 从composer依赖而来的项目模式,最基本的需要初始化的模式
|
if (LOAD_MODE === 1) { // 从composer依赖而来的项目模式,最基本的需要初始化的模式
|
||||||
$output->writeln("<comment>Initializing files</comment>");
|
$output->writeln("<comment>Initializing files</comment>");
|
||||||
$base_path = LOAD_MODE_COMPOSER_PATH;
|
$base_path = LOAD_MODE_COMPOSER_PATH;
|
||||||
$args = $input->getArgument("force");
|
$args = $input->getOption("force");
|
||||||
foreach ($this->extract_files as $file) {
|
foreach ($this->extract_files as $file) {
|
||||||
if (!file_exists($base_path . $file) || $args) {
|
if (!file_exists($base_path . $file) || $args) {
|
||||||
$info = pathinfo($file);
|
$info = pathinfo($file);
|
||||||
|
|||||||
Reference in New Issue
Block a user