diff --git a/MageWire/Component.php b/MageWire/Component.php index dc87140..d22a8ab 100644 --- a/MageWire/Component.php +++ b/MageWire/Component.php @@ -6,24 +6,25 @@ use Magento\Framework\View\Element\Block\ArgumentInterface; -if (class_exists('\Magewirephp\Magewire\Component')) { - class Component extends \Magewirephp\Magewire\Component +if (false === class_exists('\Magewirephp\Magewire\Component')) { + class Component implements ArgumentInterface { public function isHyvaCheckoutEnabled(): bool { - return true; + return false; + } + + public function dispatchBrowserEvent(string $browserEvent, $data) + { } } } else { - class Component implements ArgumentInterface + class Component extends \Magewirephp\Magewire\Component { public function isHyvaCheckoutEnabled(): bool { - return false; - } - - public function dispatchBrowserEvent(string $browserEvent, $data) - { + return true; } } + }