Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing interface for Sylius Plus compatibility #40

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions src/Entity/HomepageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -43,15 +42,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;
}
Loading