mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-14 04:15:35 +08:00
Define dependencies with kv array
This commit is contained in:
@@ -516,11 +516,6 @@ class Extension
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists(0, $deps)) {
|
|
||||||
$zero = [0 => $deps[0]];
|
|
||||||
unset($deps[0]);
|
|
||||||
return $zero + $deps;
|
|
||||||
}
|
|
||||||
return $deps;
|
return $deps;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -552,7 +547,7 @@ class Extension
|
|||||||
}
|
}
|
||||||
logger()->info("enabling {$this->name} without library {$name}");
|
logger()->info("enabling {$this->name} without library {$name}");
|
||||||
} else {
|
} else {
|
||||||
$this->dependencies[] = $depLib;
|
$this->dependencies[$name] = $depLib;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -565,7 +560,7 @@ class Extension
|
|||||||
}
|
}
|
||||||
logger()->info("enabling {$this->name} without extension {$name}");
|
logger()->info("enabling {$this->name} without extension {$name}");
|
||||||
} else {
|
} else {
|
||||||
$this->dependencies[] = $depExt;
|
$this->dependencies[$name] = $depExt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user