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,9 @@
<?php
declare(strict_types=1);
namespace Yansongda\Pay\Event;
class ApiRequested extends Event
{
}

查看文件

@@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
namespace Yansongda\Pay\Event;
class ApiRequesting extends Event
{
}

查看文件

@@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
namespace Yansongda\Pay\Event;
use Psr\Http\Message\ServerRequestInterface;
use Yansongda\Pay\Rocket;
class CallbackReceived extends Event
{
public string $provider;
public ?array $params = null;
/**
* @var null|array|ServerRequestInterface
*/
public $contents;
/**
* @param null|array|ServerRequestInterface $contents
*/
public function __construct(string $provider, $contents, ?array $params = null, ?Rocket $rocket = null)
{
$this->provider = $provider;
$this->contents = $contents;
$this->params = $params;
parent::__construct($rocket);
}
}

查看文件

@@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
namespace Yansongda\Pay\Event;
use Yansongda\Pay\Rocket;
class Event
{
public ?Rocket $rocket = null;
public function __construct(?Rocket $rocket = null)
{
$this->rocket = $rocket;
}
}

查看文件

@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace Yansongda\Pay\Event;
use Yansongda\Pay\Rocket;
class MethodCalled extends Event
{
public string $provider;
public string $name;
public array $params;
public function __construct(string $provider, string $name, array $params, ?Rocket $rocket = null)
{
$this->provider = $provider;
$this->name = $name;
$this->params = $params;
parent::__construct($rocket);
}
}

查看文件

@@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
namespace Yansongda\Pay\Event;
class PayFinish extends Event
{
}

查看文件

@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace Yansongda\Pay\Event;
use Yansongda\Pay\Contract\PluginInterface;
use Yansongda\Pay\Rocket;
class PayStarted extends Event
{
/**
* @var PluginInterface[]
*/
public array $plugins;
public array $params;
public function __construct(array $plugins, array $params, ?Rocket $rocket = null)
{
$this->plugins = $plugins;
$this->params = $params;
parent::__construct($rocket);
}
}