Skip to content

Commit

Permalink
fix: Use interface for decoration
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Gutbub committed Jul 19, 2023
1 parent ac9943e commit 455657d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/EmailManager/DecorateContactEmailManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@

use Doctrine\ORM\EntityManagerInterface;
use MonsieurBiz\SyliusContactRequestPlugin\Entity\ContactRequestInterface;
use Sylius\Bundle\ShopBundle\EmailManager\ContactEmailManager;
use Sylius\Bundle\ShopBundle\EmailManager\ContactEmailManagerInterface;
use Sylius\Component\Core\Model\ChannelInterface;
use Sylius\Component\Resource\Factory\FactoryInterface;

final class DecorateContactEmailManager implements ContactEmailManagerInterface
{
public function __construct(
private ContactEmailManager $decoratedContactEmailManager,
private ContactEmailManagerInterface $decoratedContactEmailManager,
private FactoryInterface $contactRequestFactory,
private EntityManagerInterface $contactRequestManager,
) {
Expand Down

0 comments on commit 455657d

Please sign in to comment.