Skip to content

Commit

Permalink
NTR: fix mail aware in SW 6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Sep 26, 2024
1 parent 8efb5e3 commit c627daf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions polyfill/Shopware/Core/Framework/Event/MailActionInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php declare(strict_types=1);

namespace Shopware\Core\Framework\Event;

if (interface_exists(MailActionInterface::class)) {
return;
}

use Shopware\Core\Framework\Event\EventData\MailRecipientStruct;
use Shopware\Core\Framework\Log\Package;

/**
* @deprecated tag:v6.5.0 - Will be removed in v6.5.0 Use MailAware instead
*/
#[Package('business-ops')]
interface MailActionInterface extends BusinessEventInterface
{
public function getMailStruct(): MailRecipientStruct;

public function getSalesChannelId(): ?string;
}
2 changes: 1 addition & 1 deletion polyfill/Shopware/Core/Framework/Event/MailAware.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

use Shopware\Core\Framework\Event\EventData\MailRecipientStruct;

interface MailAware extends BusinessEventInterface
interface MailAware extends MailActionInterface
{
public const MAIL_STRUCT = 'mailStruct';

Expand Down

0 comments on commit c627daf

Please sign in to comment.