|
|
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
|
|
namespace SixShop\Lakala;
|
|
|
|
|
|
use SixShop\Core\ExtensionAbstract;
|
|
|
+use SixShop\Lakala\Cron\WechatOrderCron;
|
|
|
use SixShop\Lakala\Hook\LakalaHook;
|
|
|
use SixShop\Payment\Contracts\PaymentExtensionInterface;
|
|
|
use SixShop\Payment\Contracts\PaymentProviderInterface;
|
|
|
@@ -15,20 +16,27 @@ class Extension extends ExtensionAbstract implements PaymentExtensionInterface
|
|
|
{
|
|
|
public const string EXTENSION_ID = 'lakala';
|
|
|
|
|
|
- protected function getBaseDir(): string
|
|
|
+ #[\Override] protected function getBaseDir(): string
|
|
|
{
|
|
|
return dirname(__DIR__);
|
|
|
}
|
|
|
|
|
|
- public function getPaymentProvider(): PaymentProviderInterface
|
|
|
+ #[\Override] public function getPaymentProvider(): PaymentProviderInterface
|
|
|
{
|
|
|
return app(PaymentProvider::class);
|
|
|
}
|
|
|
|
|
|
- public function getHooks(): array
|
|
|
+ #[\Override] public function getHooks(): array
|
|
|
{
|
|
|
return [
|
|
|
- LakalaHook::class
|
|
|
+ LakalaHook::class,
|
|
|
+ ];
|
|
|
+ }
|
|
|
+
|
|
|
+ #[\Override] public function getCronJobs()
|
|
|
+ {
|
|
|
+ return [
|
|
|
+ WechatOrderCron::class,
|
|
|
];
|
|
|
}
|
|
|
}
|