Extension.php 496 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. namespace SixShop\Payment;
  4. use SixShop\Core\ExtensionAbstract;
  5. use SixShop\Payment\Hook\ConfigHook;
  6. use SixShop\Payment\Hook\OrderHook;
  7. class Extension extends ExtensionAbstract
  8. {
  9. public const string EXTENSION_ID = 'payment';
  10. public function getHooks(): array
  11. {
  12. return [
  13. ConfigHook::class,
  14. OrderHook::class,
  15. ];
  16. }
  17. protected function getBaseDir(): string
  18. {
  19. return dirname(__DIR__);
  20. }
  21. }