Add custom package downloader and extractor

This commit is contained in:
crazywhalecc
2025-06-18 20:55:24 +08:00
parent 8e2dffc3b5
commit f709f3bb18
4 changed files with 61 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
namespace SPC\store\pkg;
abstract class CustomPackage
{
abstract public function getSupportName(): array;
abstract public function fetch(string $name, bool $force = false, ?array $config = null): void;
public function extract(string $name): void
{
throw new \RuntimeException("Extract method not implemented for package: {$name}");
}
}