Extension.php 735 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. declare(strict_types=1);
  3. namespace SixShop\Lakala;
  4. use SixShop\Core\ExtensionAbstract;
  5. use SixShop\Lakala\Hook\LakalaHook;
  6. use SixShop\Payment\Contracts\PaymentExtensionInterface;
  7. use SixShop\Payment\Contracts\PaymentProviderInterface;
  8. /**
  9. * Lakala Payment Extension
  10. */
  11. class Extension extends ExtensionAbstract implements PaymentExtensionInterface
  12. {
  13. public const string EXTENSION_ID = 'lakala';
  14. protected function getBaseDir(): string
  15. {
  16. return dirname(__DIR__);
  17. }
  18. public function getPaymentProvider(): PaymentProviderInterface
  19. {
  20. return app(PaymentProvider::class);
  21. }
  22. public function getHooks(): array
  23. {
  24. return [
  25. LakalaHook::class
  26. ];
  27. }
  28. }