src/EventSubscriber/Quote/RequestForQuoteWorkflowSubscriber.php line 35
<?phpnamespace App\EventSubscriber\Quote;use Symfony\Component\HttpFoundation\RequestStack;use Symfony\Component\EventDispatcher\EventSubscriberInterface;use Symfony\Component\EventDispatcher\GenericEvent;use Webmozart\Assert\Assert;use Sylius\Component\Customer\Model\CustomerInterface;use App\Repository\Customer\CustomerRepository;use App\Entity\Channel\ChannelEcodaAccountInfo;use App\Repository\Channel\ChannelEcodaAccountInfoRepository;use App\Repository\Channel\ChannelEcodaAccountTypeRepository;use Doctrine\ORM\EntityManagerInterface;use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;use App\Manager\EcodaAccountManager;use App\Entity\Quote\RequestForQuote;use Symfony\Component\Workflow\Registry;use Symfony\Component\Workflow\Event\Event;class RequestForQuoteWorkflowSubscriber implements EventSubscriberInterface{private $mailer;private $em;private $workflows;private $smsSender;public function __construct(EntityManagerInterface $em, Registry $workflows){$this->em = $em;$this->workflows = $workflows;}public function onRequestMoreInformationCompleted(Event $event){$entity = $event->getSubject();Assert::isInstanceOf($entity, RequestForQuote::class);}public static function getSubscribedEvents(){return ['workflow.request_for_quote.completed.request_more_information' => 'onRequestMoreInformationCompleted'];}}