Store the customized Shopro mall so it can be kept on the remote.

Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
wikiboss
2026-09-22 13:55:12 +08:00
当前提交 b87880e247
共有 2547 个文件被更改,包括 423496 次插入 和 0 次删除

查看文件

@@ -0,0 +1,14 @@
<?php
declare(strict_types=1);
namespace Yansongda\Artful\Contract;
interface ConfigInterface
{
public function get(string $key, mixed $default = null): mixed;
public function has(string $key): bool;
public function set(string $key, mixed $value): void;
}

查看文件

@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace Yansongda\Artful\Contract;
interface ContainerInterface extends \Psr\Container\ContainerInterface
{
public function make(string $name, array $parameters = []): mixed;
public function set(string $name, mixed $entry): mixed;
}

查看文件

@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace Yansongda\Artful\Contract;
use Psr\Http\Message\ResponseInterface;
interface DirectionInterface
{
public function guide(PackerInterface $packer, ?ResponseInterface $response, array $params = []): mixed;
}

查看文件

@@ -0,0 +1,7 @@
<?php
declare(strict_types=1);
namespace Yansongda\Artful\Contract;
interface EventDispatcherInterface extends \Psr\EventDispatcher\EventDispatcherInterface {}

查看文件

@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace Yansongda\Artful\Contract;
use Psr\Http\Client\ClientInterface;
interface HttpClientFactoryInterface
{
public function create(array $options = []): ClientInterface;
}

查看文件

@@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
namespace Yansongda\Artful\Contract;
use Psr\Http\Client\ClientInterface;
interface HttpClientInterface extends ClientInterface {}

查看文件

@@ -0,0 +1,7 @@
<?php
declare(strict_types=1);
namespace Yansongda\Artful\Contract;
interface LoggerInterface extends \Psr\Log\LoggerInterface {}

查看文件

@@ -0,0 +1,14 @@
<?php
declare(strict_types=1);
namespace Yansongda\Artful\Contract;
use Yansongda\Supports\Collection;
interface PackerInterface
{
public function pack(null|array|Collection $payload, ?array $params = null): string;
public function unpack(string $payload, ?array $params = null): ?array;
}

查看文件

@@ -0,0 +1,13 @@
<?php
declare(strict_types=1);
namespace Yansongda\Artful\Contract;
use Closure;
use Yansongda\Artful\Rocket;
interface PluginInterface
{
public function assembly(Rocket $rocket, Closure $next): Rocket;
}

查看文件

@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace Yansongda\Artful\Contract;
use Yansongda\Artful\Exception\ContainerException;
interface ServiceProviderInterface
{
/**
* @throws ContainerException
*/
public function register(mixed $data = null): void;
}

查看文件

@@ -0,0 +1,13 @@
<?php
declare(strict_types=1);
namespace Yansongda\Artful\Contract;
interface ShortcutInterface
{
/**
* @return PluginInterface[]|string[]
*/
public function getPlugins(array $params): array;
}