| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- declare(strict_types=1);
- namespace SixShop\Lakala;
- use SixShop\Core\ExtensionAbstract;
- use SixShop\Lakala\Hook\LakalaHook;
- use SixShop\Payment\Contracts\PaymentExtensionInterface;
- use SixShop\Payment\Contracts\PaymentProviderInterface;
- /**
- * Lakala Payment Extension
- */
- class Extension extends ExtensionAbstract implements PaymentExtensionInterface
- {
- public const string EXTENSION_ID = 'lakala';
- protected function getBaseDir(): string
- {
- return dirname(__DIR__);
- }
- public function getPaymentProvider(): PaymentProviderInterface
- {
- return app(PaymentProvider::class);
- }
- public function getHooks(): array
- {
- return [
- LakalaHook::class
- ];
- }
- }
|