mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 16:55:38 +08:00
Refactor documentation structure and add new artifact model guide
This commit is contained in:
8
docs/zh/develop/extending/custom-artifact.md
Normal file
8
docs/zh/develop/extending/custom-artifact.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# 自定义 Artifact
|
||||
|
||||
<!-- TODO: 介绍如何在 src/Package/Artifact/ 下实现自定义下载类。
|
||||
说明 type: custom 的适用场景(如需鉴权、非标准压缩包格式等)。
|
||||
涵盖:类的位置与命名规范、方法签名(默认下载方法与 func 分发)、
|
||||
读取配置字段、返回解压后的源码路径、
|
||||
通过 spc.registry.yml 的 artifact psr-4 映射注册类。
|
||||
提供带注释的完整代码示例。 -->
|
||||
Reference in New Issue
Block a user