Skip to content

Commit

Permalink
fix(sylius-plus): add missing interface for Sylius Plus compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lanfisis committed Mar 27, 2024
1 parent f49cb01 commit 5c59f5a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/Entity/PageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
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\CodeAwareInterface;
use Sylius\Component\Resource\Model\ResourceInterface;
use Sylius\Component\Resource\Model\SlugAwareInterface;
Expand All @@ -26,7 +27,7 @@
/**
* Interface PageInterface.
*/
interface PageInterface extends ResourceInterface, TranslatableInterface, ToggleableInterface, SlugAwareInterface, CodeAwareInterface, TimestampableInterface, Timestampable
interface PageInterface extends ResourceInterface, TranslatableInterface, ToggleableInterface, SlugAwareInterface, CodeAwareInterface, TimestampableInterface, Timestampable, ChannelsAwareInterface
{
public function getId(): ?int;

Expand All @@ -53,15 +54,4 @@ public function setMetaDescription(?string $metaDescription): void;
public function getMetaKeywords(): ?string;

public function setMetaKeywords(?string $metaKeywords): void;

/**
* @return Collection<int, ChannelInterface>
*/
public function getChannels(): Collection;

public function addChannel(ChannelInterface $channel): void;

public function removeChannel(ChannelInterface $channel): void;

public function hasChannel(ChannelInterface $channel): bool;
}

0 comments on commit 5c59f5a

Please sign in to comment.