<?php
declare(strict_types=1);
namespace BitBag\OpenMarketplace\Component\Organization\EventListener;
use BitBag\OpenMarketplace\Component\Organization\Manager\RegistrationConflictManagerInterface;
use Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent;
final class RegistrationConflictListener
{
public function __construct(
private RegistrationConflictManagerInterface $registrationConflictManager,
) {
}
public function onRegistration(ResourceControllerEvent $event): void
{
$this->registrationConflictManager->manage($event);
}
}