public function setEventTrigger(EventTriggerInterface $eventTrigger)
    {
        $this->init();
        $eventService = new EventTriggerService();
        $eventService->registerEventDispatcher($eventTrigger);

        $this->container->instance(EventTriggerService::class, $eventService);
    }
public function setEventTrigger(EventTriggerInterface $eventTrigger)
    {
        $this->init();
        $eventService = new EventTriggerService();
        $eventService->registerEventDispatcher($eventTrigger);

        $this->container->instance(EventTriggerService::class, $eventService);
    }
public function setEventTrigger ( EventTriggerInterface $ eventTrigger ) { $ this -> init ( ) ; $ eventService = new EventTriggerService ( ) ; $ eventService -> registerEventDispatcher ( $ eventTrigger ) ; $ this -> container -> instance ( EventTriggerService :: class , $ eventService ) ; }
Sets the event trigger for Mongolid events.

@param EventTriggerInterface $eventTrigger external event trigger
Sets the event trigger for Mongolid events .