From 1b0e4474c9aff137253a86e6663e08bdbb49155b Mon Sep 17 00:00:00 2001 From: David Buros Date: Wed, 27 Mar 2024 15:43:22 +0100 Subject: [PATCH] fix(sylius-plus): add missing interface for Sylius Plus compatibility --- src/Entity/HomepageInterface.php | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/Entity/HomepageInterface.php b/src/Entity/HomepageInterface.php index 1a76b6a..a642df5 100644 --- a/src/Entity/HomepageInterface.php +++ b/src/Entity/HomepageInterface.php @@ -13,14 +13,13 @@ namespace MonsieurBiz\SyliusHomepagePlugin\Entity; -use Doctrine\Common\Collections\Collection; use Gedmo\Timestampable\Timestampable; -use Sylius\Component\Channel\Model\ChannelInterface; +use Sylius\Component\Channel\Model\ChannelsAwareInterface; use Sylius\Component\Resource\Model\ResourceInterface; use Sylius\Component\Resource\Model\TimestampableInterface; use Sylius\Component\Resource\Model\TranslatableInterface; -interface HomepageInterface extends ResourceInterface, TranslatableInterface, TimestampableInterface, Timestampable +interface HomepageInterface extends ResourceInterface, TranslatableInterface, TimestampableInterface, Timestampable, ChannelsAwareInterface { public function getId(): ?int; @@ -43,15 +42,4 @@ public function setMetaDescription(?string $metaDescription): void; public function getMetaKeywords(): ?string; public function setMetaKeywords(?string $metaKeywords): void; - - /** - * @return Collection - */ - public function getChannels(): Collection; - - public function addChannel(ChannelInterface $channel): void; - - public function removeChannel(ChannelInterface $channel): void; - - public function hasChannel(ChannelInterface $channel): bool; }