Skip to content

Commit

Permalink
Merge pull request #62 from lanfisis/master
Browse files Browse the repository at this point in the history
Add missing interface for Sylius Plus compatibility
  • Loading branch information
lanfisis authored Mar 27, 2024
2 parents e00221a + 2ef5a07 commit d5b7f11
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/Entity/PageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@

namespace MonsieurBiz\SyliusCmsPagePlugin\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\CodeAwareInterface;
use Sylius\Component\Resource\Model\ResourceInterface;
use Sylius\Component\Resource\Model\SlugAwareInterface;
Expand All @@ -26,7 +25,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 +52,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 d5b7f11

Please sign in to comment.